budibase/packages/backend-core/node_modules/argsarray
Budibase Helm Bot c1e5378350 Helm Release: 1.2.36 2022-08-11 08:17:28 +00:00
..
test Helm Release: 1.2.36 2022-08-11 08:17:28 +00:00
.jshintrc Helm Release: 1.2.36 2022-08-11 08:17:28 +00:00
.npmignore Helm Release: 1.2.36 2022-08-11 08:17:28 +00:00
.travis.yml Helm Release: 1.2.36 2022-08-11 08:17:28 +00:00
index.js Helm Release: 1.2.36 2022-08-11 08:17:28 +00:00
license.md Helm Release: 1.2.36 2022-08-11 08:17:28 +00:00
package.json Helm Release: 1.2.36 2022-08-11 08:17:28 +00:00
readme.md Helm Release: 1.2.36 2022-08-11 08:17:28 +00:00

readme.md

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