1.1.1 • Published 8 years ago

@f/curry-all v1.1.1

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

curry-all

Build status Git tag NPM version Code style

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