2024-10-17 21:31:23 +03:00
..
2024-10-17 21:31:23 +03:00
2024-10-17 21:31:23 +03:00
2024-10-17 21:31:23 +03:00
2024-10-17 21:31:23 +03:00
2024-10-17 21:31:23 +03:00
2024-10-17 21:31:23 +03:00
2024-10-17 21:31:23 +03:00
2024-10-17 21:31:23 +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