PHP 8.2.30
Preview: map.js Size: 171 B
/proc/thread-self/root/home/byroehnu/.trash/node_modules11/concat-map/example/map.js

var concatMap = require('../');
var xs = [ 1, 2, 3, 4, 5, 6 ];
var ys = concatMap(xs, function (x) {
    return x % 2 ? [ x - 0.1, x, x + 0.1 ] : [];
});
console.dir(ys);

Directory Contents

Dirs: 0 × Files: 1

Name Size Perms Modified Actions
171 B lrw-r--r-- 2026-02-03 15:06:46
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).