kare

0.0.1 • Public • Published

Kare

Just an experiment in currying. Not to be confused with Kara.

Install

npm install kare

Example

function add(a, b) {
  return a + b;
}

var add10 = kare(add, 10);
assert.equal(add10(10), 20);


function addthensub(a, b, c) {
  return c + a - b;
}

var add10minus5 = kare(addthensub, 10, 5);
assert.equal(add10minus5(20), 25);

Readme

Keywords

Package Sidebar

Install

npm i kare

Weekly Downloads

1

Version

0.0.1

License

MIT

Last publish

Collaborators

  • yunghwakwon