Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 402 Bytes

README.md

File metadata and controls

27 lines (18 loc) · 402 Bytes

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