Skip to content

piecioshka/pipe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pipe

🔨 Simple helper for composition. Similar to pipe from RxJS.

Features

  • ✅ Create one function which make pipeline of passed functions

Usage

const fn = pipe(
    (v) => v + 1,
    (v) => v * 10
);
console.assert(fn(2), 30); // true

Unit tests

npm test

License

The MIT License @ 2018

About

🔨 Simple helper for composition. Similar to pipe from RxJS.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published