Detect-It-Easy/autotools/dbcompiler/node_modules/concat-map/example/map.js
DosX 77276a4fe9 Add archiver and pack .die-db archives
Add archiver dependency to package.json and update package-lock. Require archiver in task.js and implement createDieDb(srcDir, archivePath) to produce zip-based .die-db archives of processed output directories. After cleaning and reporting, the script now creates a .die-db archive per input directory and logs success/failure with archive sizes.
2026-05-09 16:38:11 +03:00

6 lines
171 B
JavaScript

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);