mirror of https://github.com/lukechilds/docs.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
429 B
18 lines
429 B
"use strict";
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
exports.default = concat;
|
|
function concat(eachfn, arr, fn, callback) {
|
|
var result = [];
|
|
eachfn(arr, function (x, index, cb) {
|
|
fn(x, function (err, y) {
|
|
result = result.concat(y || []);
|
|
cb(err);
|
|
});
|
|
}, function (err) {
|
|
callback(err, result);
|
|
});
|
|
}
|
|
module.exports = exports["default"];
|