Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Curry a function in JavaScript
JavaScript
branch: master
Failed to load latest commit information.
test patch mocha for old firefox
.gitignore Initial commit
.jepso-ci.json Add jepso-ci
Readme.md Add viewcount
component.json Release 1.0.0
index.js typo

Readme.md

jepso-ci status

curry

Curry a function in JavaScript

Installation

$ component install ForbesLindesay/curry

API

var curry = require('curry');

var sumFour = curry(function (a, b, c, d) {
  return a + b + c + d;
});

sumFour(5)(5)(5)(5);// => 20
sumFour(5, 5)(5, 5);// => 20
sumFour(5, 5, 5, 5);// => 20
sumFour(5)(5, 5, 5);// => 20
sumFour(5, 5, 5)(5);// => 20

License

MIT

viewcount

Something went wrong with that request. Please try again.