$ cnpm install @f/foreach-array
Iterate over an array
$ npm install @f/foreach-array
var forEach = require('@f/foreach-array')
forEach(cacheUser, [user1, user2, user3])
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 overReturns: void
MIT
Copyright 2013 - present © cnpmjs.org | Home |