Skip to content

Accepts any number of functions as parameters, and pipes provided arguments through those functions in sequence.

Notifications You must be signed in to change notification settings

nikolasleblanc/perabo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Perabo

Description

Takes any number of functions as arguments and returns a new function that will pass its argument to the first function, then pass the result to the second, continuing this process until all functions have been called and a final value is returned.

Installation

npm install perabo --save

Usage

var perabo = require('perabo');

perabo(foo, bar)(1, 2, 3)

// would be the same as
bar(foo(1, 2, 3));

// similarly
perabo(foo, bar, baz)(1, 2, 3)

// would be the same as
baz(bar(foo(1, 2, 3)));

About

Accepts any number of functions as parameters, and pipes provided arguments through those functions in sequence.

Resources

Stars

Watchers

Forks

Packages

No packages published