jcurry

0.0.1 • Public • Published

jcurry

A simple currying realization.

Installation

Install as usual:

npm i jcurry

Usage

This module is very simple to use:

var jcurry = require('./index');

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

jcurry(sum, 6)(4, 5); // => 15

Also you can curry over two steps:

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

var carried = jcurry(fn, 2);
carried(8, 5, 6); // => 21

Readme

Keywords

Package Sidebar

Install

npm i jcurry

Weekly Downloads

0

Version

0.0.1

License

MIT

Last publish

Collaborators

  • timefordroids