Show More
Commit Description:
add model solution
Commit Description:
add model solution
References:
File last commit:
Show/Diff file:
Action:
node_modules/foreach/Readme.md
| 30 lines
| 593 B
| text/x-minidsrc
| MarkdownLexer
|
foreach
Iterate over the key value pairs of either an array-like object or a dictionary like object.
API
foreach(object, function, [context])
var each = require('foreach'); each([1,2,3], function (value, key, array) { // value === 1, 2, 3 // key === 0, 1, 2 // array === [1, 2, 3] }); each({0:1,1:2,2:3}, function (value, key, object) { // value === 1, 2, 3 // key === 0, 1, 2 // object === {0:1,1:2,2:3} });