blob: 4fd7b265f7f0d88b72fb0ab5b184ac5156f679f5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
'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'];
|