@f/foreach-array

1.0.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @f/foreach-array

Weekly Downloads

779

Version

1.0.0

License

MIT

Last publish

Collaborators

  • f