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.
|
|
6 years ago | |
|---|---|---|
| .. | ||
| LICENSE | 6 years ago | |
| README.md | 6 years ago | |
| curri.js | 6 years ago | |
| index.next.js | 6 years ago | |
| package.json | 6 years ago | |
README.md
curri
curriin some Italian 🇮🇹 dialects meansrun
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
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