parcoursup/node_modules/curri
lalBi94 7bc56c09b5 $
2023-03-05 13:23:23 +01:00
..
curri.js $ 2023-03-05 13:23:23 +01:00
index.next.js $ 2023-03-05 13:23:23 +01:00
LICENSE $ 2023-03-05 13:23:23 +01:00
package.json $ 2023-03-05 13:23:23 +01:00
README.md $ 2023-03-05 13:23:23 +01:00

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