TypeScript FP Compose
Curried compose functions with generic types
Usage
Requirements
- ES6
Install
npm install @typescript-fp/compose
Example
import {composeFgGab as compose} from "@typescript-fp/compose"
const add = (a: number) => (b: number) => a + b;
const increment = add(1);
const composedFn = compose(increment)(add);
composedFn(5)(5)
Development
Requirements
- Node.js
- Typescript 3
Compile
npm run build
Tests
npm run test