0.0.1 • Published 8 years ago
js_pipe v0.0.1
README
this is a pipe methon of js.
USE
var Pipe = require('./../src/pipe.js');
var f = function (a) {
console.log(a);
return a + 1;
};
var pipe = new Pipe([1]);
re = pipe.pipe(f).pipe(f).result();
arry is first function arguments. new Pipe(arry);
function must be one argument and return one value.
0.0.1
8 years ago