can.each
Iterate through an array or object.
can.each(collection, callback)
Parameters
-
collection
{Object}
The object to iterate through.
-
callback
{function()}
A function to call for each item in collection. callback will recieve the item's value first and its key second.
can.each(collection, callback)
iterates through an array or object like like jQuery.each.