curri
v2.0.3
Published
Minimal curry implementation
Downloads
6,630
Maintainers
Readme
curri
curriin some Italian :it: dialects meansrun
Usage
import curry from 'curri'
const add = (a, b) => a + b
const add3 = curry(add)(3)
console.log(add3(5)) // 8API
curry
Function to curry any javascript method
Parameters
fnFunction the target function we want to curryacc...[args] initial arguments
Returns (Function | any) it will return a function until the target function will receive all of its arguments
