js_pipe
v0.0.1
Published
a pipe for function to deal with data more conveniant.
Downloads
2
Readme
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.