utils for functional programing
$ npm install functional-utils-eamon
$ yarn add functional-utils-eamon
$ npm run test
$ yarn test
- forEach
- map
- filter
- reduce
- pipe
- forEach
- map
- filter
- reduce
- take
import { forEach, filter, map, pipe } from 'functional-utils-eamon';
const data = [1, 2, 4];
pipe(
filter((x) => x > 1),
map((x) => x * 2),
forEach((x) => console.log(x))
)(data); // [4,8]
👤 eamon3481
- Blog: https://velog.io/@eamon3481
- Github: @eamon3481
Give a ⭐️ if this project helped you!