README
each
iterate over object keys and values / array elements, for node and browser
Changelog
1.0.0
:
- Initial release
Installation
$ npm install seed-each --save
Usage
var each = require('seed-each');
each(['a','b','c'], function(item, index) {
console.log(item, index); // a, 1; b, 2; c, 3
});
each({ name: 'John', age: 35 }, function(value, key) {
console.log(value, key); // John, name; 35, age
});
Development
$ git clone git@github.com:seedalpha/each.git
$ cd each
$ npm install
$ npm test
Author
Vladimir Popov vlad@seedalpha.net
License
©2014 Seedalpha