1.0.5 • Published 3 years ago
curry-me v1.0.5
Curry Me
A typed curry function with great IntelliSense.
Please note that you can curry functions with a maximum arity of 8.
Installation
yarn install curry-me
# or
npm install curry-me
Getting started
import { curry } from "curry-me";
const add = curry ((x: number, y: number, z: number) => x + y + z);
add (1) (2) (3); // 6
add (1, 2) (3); // 6
add (1, 2, 3); // 6