each
can.List.prototype.each
Call a function on each element of a List.
list.each( callback(item, index) )
each
iterates through the List, calling a function
for each element.
Parameters
-
callback
{function(*, Number)}
the function to call for each element The value and index of each element will be passed as the first and second arguments, respectively, to the callback. If the callback returns false, the loop will stop.
Returns
{can.List}
this List, for chaining