1.0.1 • Published 9 years ago
@micro-js/curry-all v1.0.1
curry-all
Curry all of the functions in an object
Installation
$ npm install @micro-js/curry-all
Usage
var curryAll = require('@micro-js/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