Server IP : 162.213.251.212 / Your IP : 3.142.220.6 [ Web Server : LiteSpeed System : Linux business55.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : allssztx ( 535) PHP Version : 8.1.31 Disable Function : NONE Domains : 1 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/allssztx/www/easybuyer/node_modules/arity-n/ |
Upload File : |
arity-n ============ [![Build Status](https://travis-ci.org/stoeffel/arityN.svg)](https://travis-ci.org/stoeffel/arityN) [![npm version](https://badge.fury.io/js/arity-n.svg)](http://badge.fury.io/js/arity-n) > Wraps a function with a function of a sertain arity. Installation ------------ `npm install arity-n` Usage ----- ```js 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 ```