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

foreach-array

Build status Git tag NPM version Code style

Iterate over an array

Installation

$ npm install @f/foreach-array

Usage

var forEach = require('@f/foreach-array')
forEach(cacheUser, [user1, user2, user3])

API

forEach(fn, arr)

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

Returns: void

License

MIT

Current Tags

  • 1.0.0                                ...           latest (10 years ago)

1 Versions

  • 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 |