forEach
can.List.prototype.forEach
Call a function for each element of a List.
list.forEach(callback[, thisArg])
Parameters
-
callback
{function(element, index, list)}
a function to call with each element of the List The three parameters that callback gets passed are element, the element at index, index the current element of the list, and list the List the elements are coming from.
-
thisArg
{Object}
Optionalthe object to use as
this
inside the callback
forEach
calls a callback for each element in the List.