@spudly/curry
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

@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

Readme

Keywords

none

Package Sidebar

Install

npm i @spudly/curry

Weekly Downloads

0

Version

1.0.0

License

ISC

Unpacked Size

9.66 kB

Total Files

8

Last publish

Collaborators

  • spudly