Add part3

This commit is contained in:
Andrew Trieu
2023-05-23 08:05:53 +03:00
parent 41757b9830
commit fa5d8255d6
1296 changed files with 167750 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
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);