MCPcopy Index your code
hub / github.com/exratione/lambda-complex / innerCallback

Function innerCallback

lib/shared/utilities.js:110–125  ·  view source on GitHub ↗
(error)

Source from the content-addressed store, hash-verified

108 var length = dataArray.length;
109
110 function innerCallback (error) {
111 if (calledBack) {
112 return;
113 }
114
115 completed++;
116
117 if (error) {
118 calledBack = true;
119 callback(error);
120 }
121 else if (completed === length) {
122 calledBack = true;
123 callback();
124 }
125 }
126
127 for (var index = 0; index < length; index++) {
128 fn(dataArray[index], innerCallback);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected