@seedalpha/each

1.0.10 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i @seedalpha/each

Weekly Downloads

0

Version

1.0.10

License

©2014 Seedalpha

Unpacked Size

2.72 kB

Total Files

5

Last publish

Collaborators

  • tom.raggett.trcuk.com
  • ac_inc