$ cnpm install @f/foreach-obj
Iterate over an object.
$ npm install @f/foreach-obj
var forEach = require('@f/foreach-obj')
forEach(function (value, key, index) {
// do something
}, { a: 1, b: 2 })
fn(value, key, index) - Function you want to call for each element of the object. Called with the same context as forEach.Returns: void
MIT
Copyright 2013 - present © cnpmjs.org | Home |