curri
TypeScript icon, indicating that this package has built-in type declarations

2.0.3 • Public • Published

curri

curri.js

curri in some Italian 🇮🇹 dialects means run

Build Status NPM version NPM downloads MIT License

Usage

import curry from 'curri'

const add = (a, b) => a + b
const add3 = curry(add)(3)

console.log(add3(5)) // 8

API

curry

Function to curry any javascript method

Parameters

  • fn Function the target function we want to curry
  • acc ...[args] initial arguments

Returns (Function | any) it will return a function until the target function will receive all of its arguments

Package Sidebar

Install

npm i curri

Weekly Downloads

596

Version

2.0.3

License

MIT

Unpacked Size

5.68 kB

Total Files

6

Last publish

Collaborators

  • gianlucaguarini