Code Review
/
vnfsdk
/
refrepo.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
history
|
raw
|
HEAD
Bug:Fix file validation issue
[vnfsdk/refrepo.git]
/
vnfmarket
/
src
/
main
/
webapp
/
vnfmarket
/
node_modules
/
concat-map
/
example
/
map.js
1
var concatMap = require('../');
2
var xs = [ 1, 2, 3, 4, 5, 6 ];
3
var ys = concatMap(xs, function (x) {
4
return x % 2 ? [ x - 0.1, x, x + 0.1 ] : [];
5
});
6
console.dir(ys);