0.0.0 • Published 6 years ago
gen-map v0.0.0
Example
$ npm install generator.pipe --save
const GP = require('generator.pipe');
const gen = GP([3,4,5,6])
.map(x => x * x)
.map(x => x + 3)
.apply()
console.log(gen.get(2)) //[12, 19]
console.log(gen.all()) // [28, 39]
0.0.0
6 years ago