nodejsscript • Docs
nodejsscript / pipe
pipe(...
funs
): (input
) =>any
Function similar to Ramda R.pipe
. Provides functional way to combine commands/functions.
pipe(
Number,
v=> `Result is: ${v}`,
echo
)(await question("Choose number:"));
• ...funs: Function
[]
Function
• input: any
any