just-pipe
v1.0.0
Published
Pass a value through a pipeline of functions
Downloads
12,211
Readme
just-pipe
Part of a library of zero-dependency npm modules that do just do one thing. Guilt-free utilities for every occasion.
npm install just-pipe
yarn add just-pipe
Pass a value through a pipeline of functions
import pipe from 'just-pipe
pipe(3, a => a+1, b => b*2) // 8
pipe('John Smith', a => a.split(' '), b => b.reverse(), c => c[0]) // 'Smith'