- 🚀 a functional JavaScript and TypeScript experience.
- 🤗 does not mutate values
- 🍎 a small footprint through tree shaking
npm i fnxt
The API Documentation can be found here.
import {filter, map} from 'fnxt/array';
import {pipe} from 'fnxt/pipe';
const composed = pipe(
filter((x:number) => x % 2 !== 0),
map((x:number) => x*2),
);
composed([1,2,3,4,5]); //-> [2,6,10]
Thoroughly tested and reliable. The code coverage can be found here.