You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Björn be2ee1311e adding 5 years ago
..
LICENSE adding 5 years ago
README.md adding 5 years ago
curri.js adding 5 years ago
index.next.js adding 5 years ago
package.json adding 5 years ago

README.md

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