@f/curry-once

Simple curry function. Just curries once.

Stats

StarsIssuesVersionUpdatedCreatedSize
@f/curry-once
001.3.26 years ago6 years agoMinified + gzip package size for @f/curry-once in KB

Readme

curry-once

Build status Git tag NPM version Code style

Simple curry function.

Installation

$ npm install @f/curry-once

Usage

var curry = require('@f/curry-once')

var add = curry(function (a, b) {
  return a + b
})

var addOne = add(1)
addOne(1) // => 2

API

curry(fn)

  • fn - function to curry

Returns: curried partial of fn

License

MIT

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.