0.1.0 • Published 10 years ago
p-each v0.1.0
p-each
concurrent each for node/component
Installation
npm
$ npm install p-each
component
$ component install camshaft/p-each
Usage
When calling p-each
an instance of batch is returned.
var each = require('p-each');
var arr = [1, 2, 3, 4, 5];
each(arr, function(num, fn) {
fn(null, num * num);
}).end(function(err, squared) {
});
0.1.0
10 years ago