1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 01:39:24 +02:00
Oinktube/node_modules/argsarray
2022-07-15 11:08:01 -03:00
..
test New updates and modules 2022-07-15 11:08:01 -03:00
.jshintrc New updates and modules 2022-07-15 11:08:01 -03:00
.npmignore New updates and modules 2022-07-15 11:08:01 -03:00
.travis.yml New updates and modules 2022-07-15 11:08:01 -03:00
index.js New updates and modules 2022-07-15 11:08:01 -03:00
license.md New updates and modules 2022-07-15 11:08:01 -03:00
package.json New updates and modules 2022-07-15 11:08:01 -03:00
readme.md New updates and modules 2022-07-15 11:08:01 -03:00

args array Build Status

npm install argsarray

simple library to treat function arguments as an array without leaking the arguments object (which is bad), based on something I wrote for PouchDB.

Simple wrap a function in this and the function will always be called with an array of the arguments it was called with.

var myFunc = argsarray(function myFunc(args) {
  console.log(args);
});

myFunc(a, b, c);
//[a, b, c];

#license

wtfpl