@f/foreach-obj
Iterate over an object
Last updated 10 years ago by f .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @f/foreach-obj 
SYNC missed versions from official npm registry.

foreach-obj

Build status Git tag NPM version Code style

Iterate over an object.

Installation

$ npm install @f/foreach-obj

Usage

var forEach = require('@f/foreach-obj')

forEach(function (value, key, index) {
  // do something
}, { a: 1, b: 2 })

API

forEach(fn, obj)

  • fn(value, key, index) - Function you want to call for each element of the object. Called with the same context as forEach.
  • obj - The object you want to iterate over

Returns: void

License

MIT

Current Tags

  • 1.1.1                                ...           latest (10 years ago)

3 Versions

  • 1.1.1                                ...           10 years ago
  • 1.0.1                                ...           10 years ago
  • 1.0.0                                ...           10 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (1)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |