1.0.1 • Published 9 years ago

@micro-js/curry-all v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
9 years ago

curry-all

Build status Git tag NPM version Code style

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