katoikia-app/web-ui/web-react/node_modules/arity-n
Maria Sanchez 5abf040b42 fix web ui template 2022-07-05 22:15:11 -06:00
..
.editorconfig fix web ui template 2022-07-05 22:15:11 -06:00
.jshintrc fix web ui template 2022-07-05 22:15:11 -06:00
.npmignore fix web ui template 2022-07-05 22:15:11 -06:00
.travis.yml fix web ui template 2022-07-05 22:15:11 -06:00
0.js fix web ui template 2022-07-05 22:15:11 -06:00
1.js fix web ui template 2022-07-05 22:15:11 -06:00
2.js fix web ui template 2022-07-05 22:15:11 -06:00
3.js fix web ui template 2022-07-05 22:15:11 -06:00
4.js fix web ui template 2022-07-05 22:15:11 -06:00
5.js fix web ui template 2022-07-05 22:15:11 -06:00
LICENSE fix web ui template 2022-07-05 22:15:11 -06:00
N.js fix web ui template 2022-07-05 22:15:11 -06:00
README.md fix web ui template 2022-07-05 22:15:11 -06:00
package.json fix web ui template 2022-07-05 22:15:11 -06:00
test.js fix web ui template 2022-07-05 22:15:11 -06:00

README.md

arity-n

Build Status npm version

Wraps a function with a function of a sertain arity.

Installation

npm install arity-n

Usage

function fn(a, b, c, d) {
}

var arityN = require('arity-n');
var newFn = arityN(fn, 3);

newFn.length; // => 3

var arity4 = require('arity-n/4');
var newFn = arity4(fn);

newFn.length; // => 4

// Max arity is 5.
var newFn = arityN(fn, 7);

newFn.length; // => 4