Евгения Акиншина 52274d6dab HW<react> done %!s(int64=3) %!d(string=hai) anos
..
.editorconfig 52274d6dab HW<react> done %!s(int64=3) %!d(string=hai) anos
.jshintrc 52274d6dab HW<react> done %!s(int64=3) %!d(string=hai) anos
.npmignore 52274d6dab HW<react> done %!s(int64=3) %!d(string=hai) anos
.travis.yml 52274d6dab HW<react> done %!s(int64=3) %!d(string=hai) anos
0.js 52274d6dab HW<react> done %!s(int64=3) %!d(string=hai) anos
1.js 52274d6dab HW<react> done %!s(int64=3) %!d(string=hai) anos
2.js 52274d6dab HW<react> done %!s(int64=3) %!d(string=hai) anos
3.js 52274d6dab HW<react> done %!s(int64=3) %!d(string=hai) anos
4.js 52274d6dab HW<react> done %!s(int64=3) %!d(string=hai) anos
5.js 52274d6dab HW<react> done %!s(int64=3) %!d(string=hai) anos
LICENSE 52274d6dab HW<react> done %!s(int64=3) %!d(string=hai) anos
N.js 52274d6dab HW<react> done %!s(int64=3) %!d(string=hai) anos
README.md 52274d6dab HW<react> done %!s(int64=3) %!d(string=hai) anos
package.json 52274d6dab HW<react> done %!s(int64=3) %!d(string=hai) anos
test.js 52274d6dab HW<react> done %!s(int64=3) %!d(string=hai) anos

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