Skip to content

Latest commit

 

History

History
35 lines (21 loc) · 498 Bytes

pipe.md

File metadata and controls

35 lines (21 loc) · 498 Bytes

nodejsscriptDocs


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

Function

Parameters

input: any

Returns

any