@f/curry-all
v1.1.1
Published
Curry all of the functions in an object
Downloads
20
Readme
curry-all
Curry all of the functions in an object
Installation
$ npm install @f/curry-all
Usage
var curryAll = require('@f/curry-all')
var a = {test: add}
var b = curryAll(a)
b.test(1)(2) === 3
function add (a, b) {
return a + b
}
API
curryAll(obj)
obj
- An object containing functions (other values will be skipped) that will be curried by curry-once.
Returns: A new object with all of its functions curried by curry-once
License
MIT