PHP 7.4.33
Preview: index.js Size: 345 B
/var/www/uibuilder.cmshelp.dk/httpdocs/node_modules/concat-map/index.js
module.exports = function (xs, fn) {
    var res = [];
    for (var i = 0; i < xs.length; i++) {
        var x = fn(xs[i], i);
        if (isArray(x)) res.push.apply(res, x);
        else res.push(x);
    }
    return res;
};

var isArray = Array.isArray || function (xs) {
    return Object.prototype.toString.call(xs) === '[object Array]';
};

Directory Contents

Dirs: 2 × Files: 5
Name Size Perms Modified Actions
example DIR
- drwxr-xr-x 2025-03-28 11:04:36
Edit Download
test DIR
- drwxr-xr-x 2025-03-28 11:04:36
Edit Download
43 B lrw-r--r-- 2025-03-28 11:04:36
Edit Download
345 B lrw-r--r-- 2025-03-28 11:04:36
Edit Download
1.05 KB lrw-r--r-- 2025-03-28 11:04:36
Edit Download
989 B lrw-r--r-- 2025-03-28 11:04:36
Edit Download
1.14 KB lrw-r--r-- 2025-03-28 11:04:36
Edit Download
If ZipArchive is unavailable, a .tar will be created (no compression).