@f/curry-all

1.1.1 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @f/curry-all

Weekly Downloads

0

Version

1.1.1

License

MIT

Last publish

Collaborators

  • f