each
can.Map.prototype.each
Call a function on each property of an Map.
map.each( callback(item, propName ) )
each
iterates through the Map, calling a function
for each property value and key.
Parameters
-
callback
{function(item, propName)}
the function to call for each property The value and key of each property will be passed as the first and second arguments, respectively, to the callback. If the callback returns false, the loop will stop.
Returns
{can.Map}
this Map, for chaining