js-vault
js-vault copied to clipboard
Implement the pipe function
function pipe() {
// Implement code here
}
const double = (x) => x * 2;
const square = (x) => x * x;
const cube = (x) => x ** 3;
// const value = pipe(double, cube, square)(2); // output 4096
// console.log(value);
Keep the pipe function as generic as possible..
Hey!! I'd like to work on this!!
Sure
Hey!! According to the new rules you'd also have to add "hacktoberfest" on topics of this repository!!
Also, I can't seem to find this piece of code and where to implement??
you can check the readme