Top "Each" questions

An iterator function or language struct which can be used to iterate over arrays or lists.

How to use .promise().done() on $.each json array when done/completed?

I want to perform some action when $.each is done. $.each(someArray, function(index, val) { //---------some async ajax action here …

jquery promise each
In jQuery is it more efficient to use filter(), or just do so in the each()?

I currently have code that is pulling in data via jQuery and then displaying it using the each method. However, …

javascript jquery filter each
What is the difference between Groovy each and forEach?

Simple question that I haven't been able to find a simple answer for on the googles: what is the difference …

groovy foreach each
How to write a loop in jQuery which waits for each function to complete before continuing the loop

Please forgive me if this is an obvious one. I have an unknown amount of elements on a page, which …

jquery loops wait each synchronous
cycling through a list of colors with sass

It is possible to have list of three colors: $color-list: x y z; And then apply these three colors by …

loops sass each
How do I use groovy jsonbuilder with .each to create an array?

I would like to create an array with JSON-Builder. Expected format: { "Header": { "SomeKey" : "SomeValue" } "Data": [ { "SomeKey" : "SomeValue" }, { "SomeKey" : "SomeValue" } ] } My …

arrays groovy each jsonbuilder
PHP 7.2 deprecated: while = each() loop without $value

As each() loop is deprecated since PHP 7.2, how to update the below while(() = each()) loop without $value? Without the $value …

php foreach while-loop each deprecated
order_by in block each rails 3.1

I have a loop for with order_by for :created_at and :desc <% for comment in post.comments.order_…

ruby-on-rails ruby-on-rails-3 sql-order-by each
jQuery: How to use each starting at an index other than 0

I have a collection of elements that I want to loop over using each, but I am looping over them …

jquery each
jQuery .each() vs. .map() without return

Is there any difference between .each() and .map() when no value is returned? Is there any benefit in using one …

javascript jquery map each