@spudly/curry

Creates a curried function.

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
@spudly/curry
101.0.04 years ago4 years agoMinified + gzip package size for @spudly/curry in KB

Readme

@spudly/curry
Creates a curried function.
GitHub Workflow Status Codecov version downloads NPM
All Contributors PRs Welcome Code of Conduct
Watch on GitHub Star on GitHub Tweet
Installation
npm install --save @spudly/curry
Usage
import curry from '@spudly/curry';

const add = curry((a, b, c) => a + b + c);
curriedAdd(1, 2, 3); // => 6
curriedAdd(1, 2)(3); // => 6
curriedAdd(1)(2, 3); // => 6
curriedAdd(1)(2)(3); // => 6