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

Function invokeNext

lib/shared/utilities.js:151–166  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

149 fns = fns.slice(0);
150
151 function invokeNext () {
152 var fn = fns.shift();
153
154 // Are we done?
155 if (fn === undefined) {
156 return callback();
157 }
158
159 fn(function (error) {
160 if (error) {
161 return callback(error);
162 }
163
164 invokeNext();
165 });
166 };
167
168 invokeNext();
169};

Callers 1

utilities.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected