@f/foreach-array

Iterate over an array

Stats

StarsIssuesVersionUpdatedCreatedSize
@f/foreach-array
001.0.06 years ago6 years agoMinified + gzip package size for @f/foreach-array in KB

Readme

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

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.