Skip to content

Instantly share code, notes, and snippets.

@gdyrrahitis

gdyrrahitis/pipeline.js Secret

Created Jul 10, 2019
Embed
What would you like to do?
const add = (x, y) => {
return x + y;
}
const mul = (x, y) => {
return x * y;
}
const subtract = (x, y) => {
return x - y;
}
const result = 5
|> add(10, ?)
|> mul(2, ?)
|> subtract (?, 3);
console.log("The value is:", result);
// prints: "The value is: 27"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.