MCPcopy Create free account
hub / github.com/PrairieLearn/PrairieLearn / _concat

Function _concat

public/javascripts/async.js:766–776  ·  view source on GitHub ↗
(eachfn, arr, fn, callback)

Source from the content-addressed store, hash-verified

764 });
765
766 function _concat(eachfn, arr, fn, callback) {
767 var result = [];
768 eachfn(arr, function (x, index, cb) {
769 fn(x, function (err, y) {
770 result = result.concat(y || []);
771 cb(err);
772 });
773 }, function (err) {
774 callback(err, result);
775 });
776 }
777 async.concat = doParallel(_concat);
778 async.concatSeries = doSeries(_concat);
779

Callers

nothing calls this directly

Calls 3

callbackFunction · 0.85
fnFunction · 0.70
cbFunction · 0.70

Tested by

no test coverage detected