UI for Zipcoin Blue
Tennessee Gibbs 0304752480 added pages to master 6 years ago
..
.npmignore added pages to master 6 years ago
LICENSE added pages to master 6 years ago
Makefile added pages to master 6 years ago
Readme.md added pages to master 6 years ago
component.json added pages to master 6 years ago
index.js added pages to master 6 years ago
package.json added pages to master 6 years ago
test.js added pages to master 6 years ago

Readme.md

foreach

Iterate over the key value pairs of either an array-like object or a dictionary like object.

browser support

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}
});