u.each

Iterate over object properties or array elements

npm install u.each
4 downloads in the last week
8 downloads in the last month

each

Iterate over object properties or array elements

Usage

var each = require('u.each');

each([1,2,3], console.log);
1 0
2 1
3 2
each({ a: 1, b: 2, c: 3 }, console.log);
a 1
b 2
c 3

Install

npm install u.each

Motivation

Very focused utility for array and object first level iterations

Like underscore/lodash each but isolated

npm loves you