Skip to content

Latest commit

 

History

History
39 lines (23 loc) · 486 Bytes

File metadata and controls

39 lines (23 loc) · 486 Bytes

nodejsscript


nodejsscript / pipe

Function: 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:"));

Parameters

funs

...Function[]

Returns

(input): any

Parameters

input

any

Returns

any