@annexe/partial
A function to partially apply function arguments.
Installation
To install @annexe/partial:
Yarn
yarn add @annexe/partial
NPM
npm install @annexe/partial
Usage
import { partial } from '@annexe/partial';
const sum = (a: number, b: number) => a + b;
const partialFn = partial<number[], number[], number>(sum, 1);
console.log(partialFn(2)); // prints 3