foreach-array
Iterate over an array
Installation
$ npm install @f/foreach-array
Usage
var forEach =
API
forEach(fn, arr)
fn(value, index)
- Function you want to call for each element of the array. Called with the same context asforEach
.arr
- The array you want to iterate over
Returns: void
License
MIT