/function/pipe
stdPipes an input through given functions.
Type signature
(...fs: ((x: any) => any)[]) => (x: any) => any
Examples
pipe(
(x) => x * x,
(x) => x + 1
)(3);
// ⇒ 10
Try in REPL
Questions
- How to pipe an argument through a function?