{"_id":"argsarray","_rev":"1017328","name":"argsarray","description":"get arguments to a function as an array, withouth deoptimizing","dist-tags":{"latest":"0.0.1"},"maintainers":[{"name":"cwmma","email":"calvin.metcalf@gmail.com"}],"time":{"modified":"2021-09-28T15:36:45.000Z","created":"2014-03-19T16:52:40.806Z","0.0.1":"2014-03-19T16:52:40.806Z"},"users":{},"author":{"name":"Calvin Metcalf"},"repository":{"type":"git","url":"git://github.com/calvinmetcalf/argsarray.git"},"versions":{"0.0.1":{"name":"argsarray","version":"0.0.1","description":"get arguments to a function as an array, withouth deoptimizing","main":"index.js","directories":{"test":"test"},"scripts":{"test":"tape test/test.*.js | tspec"},"repository":{"type":"git","url":"git://github.com/calvinmetcalf/argsarray.git"},"keywords":["arguments","args"],"author":{"name":"Calvin Metcalf"},"license":"WTFPL","bugs":{"url":"https://github.com/calvinmetcalf/argsarray/issues"},"homepage":"https://github.com/calvinmetcalf/argsarray","devDependencies":{"tape":"^2.10.2","glob":"^3.2.9","tap-spec":"^0.1.5"},"_id":"argsarray@0.0.1","dist":{"shasum":"6e7207b4ecdb39b0af88303fa5ae22bda8df61cb","size":2630,"noattachment":false,"key":"/argsarray/-/argsarray-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/argsarray/download/argsarray-0.0.1.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"cwmma","email":"calvin.metcalf@gmail.com"},"maintainers":[{"name":"cwmma","email":"calvin.metcalf@gmail.com"}],"publish_time":1395247960806,"_hasShrinkwrap":false,"_cnpm_publish_time":1395247960806}},"readme":"args array [![Build Status](https://travis-ci.org/calvinmetcalf/argsarray.png)](https://travis-ci.org/calvinmetcalf/argsarray)\n===\n\n```bash\nnpm install argsarray\n```\n\nsimple library to treat function arguments as an array without leaking the arguments object ([which is bad](https://github.com/petkaantonov/bluebird/wiki/Optimization-killers#3-managing-arguments)), based on something I wrote for [PouchDB](https://github.com/daleharvey/pouchdb).\n\nSimple wrap a function in this and the function will always be called with an array of the arguments it was called with.\n\n```js\nvar myFunc = argsarray(function myFunc(args) {\n  console.log(args);\n});\n\nmyFunc(a, b, c);\n//[a, b, c];\n```\n\n#license\n\nwtfpl","_attachments":{},"homepage":"https://github.com/calvinmetcalf/argsarray","bugs":{"url":"https://github.com/calvinmetcalf/argsarray/issues"},"license":"WTFPL"}