MCPcopy Create free account
hub / github.com/CloudBoost/cloudboost / eachWithIndex

Function eachWithIndex

sdk/src/CloudSocketClientLib.js:3591–3596  ·  view source on GitHub ↗
(i, el, cb)

Source from the content-addressed store, hash-verified

3589 var next = after(ary.length, done);
3590
3591 var eachWithIndex = function(i, el, cb) {
3592 each(el, function(error, msg) {
3593 result[i] = msg;
3594 cb(error, result);
3595 });
3596 };
3597
3598 for (var i = 0; i < ary.length; i++) {
3599 eachWithIndex(i, ary[i], next);

Callers 1

mapFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected