function/pipe
v0.0.1
0.0.1
Collaborators
Gravatar for undefined
0
MIT
PUBLIC
0
1     DEPENDENCIES
BuildPass

compose functions from left to right

Use function/pipe in your project
npm i @bit/bit.utils.function.pipe

pipe (functions:Array<function>) : function

compose functions from left to right

Example

pipe(func1, func2, func3)(val) === func3(func2(func3(val)))

Argument

functions: Array<function>

Returns

function

Test Summary


pipe the component should existPass