source: node_modules/concat-map/example/map.js@ 81bc7da

finki-main main
Last change on this file since 81bc7da was 81bc7da, checked in by Klimentina Efremova <klimentina08642@…>, 3 months ago

Initial commit

  • Property mode set to 100644
File size: 171 bytes
RevLine 
[81bc7da]1var concatMap = require('../');
2var xs = [ 1, 2, 3, 4, 5, 6 ];
3var ys = concatMap(xs, function (x) {
4 return x % 2 ? [ x - 0.1, x, x + 0.1 ] : [];
5});
6console.dir(ys);
Note: See TracBrowser for help on using the repository browser.