icat_pipeline
v1.0.3
Published
A function like pipeline operator.
Downloads
1
Readme
install
npm install @icat/pipeline --save
how to use
let pipeline = require("icat_pipeline");
pipeline("to")
/* Use single argument */
(3.14)
.to(String)
.to(console.log)
// => string: "3.14"
/* Use arguments */
[1,2,3,4]
.$to(console.log)
// => 1
// => 2
// => 3
// => 4