bc

bloody-curry

simple currying script

Showing:

Popularity

Downloads/wk

0

GitHub Stars

0

Maintenance

Last Commit

6yrs ago

Contributors

0

Package

Dependencies

0

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

curry

Build Status

install

$ npm install bloody-curry

require

var curry = require("curry")

simple currying script

function add(a,b,c,d){
  return a + b + c + d
}

var addToOne = curry(add)(1)
addToOne(1,2,3) // -> 7
addToOne(1)(2)(3) // -> 7

api

curry(func[, length])

Returns a curried function that keeps returning a function until the sum of the passed arguments's length reaches length (if defined) or fn.length.

license

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial