{"_id":"fast-apply","_rev":"138581","name":"fast-apply","description":"Apply an array of arguments... faster","dist-tags":{"latest":"0.0.3"},"maintainers":[{"name":"jaycetde","email":"jaycemp@gmail.com"}],"time":{"modified":"2024-06-11T03:42:37.000Z","created":"2014-01-19T07:03:42.804Z","0.0.3":"2014-01-27T19:42:39.014Z","0.0.2":"2014-01-19T20:12:59.775Z","0.0.1":"2014-01-19T20:09:39.303Z","0.0.0":"2014-01-19T07:03:42.804Z"},"users":{},"author":{"name":"Jayce Pulsipher","email":"jaycemp@gmail.com"},"repository":{"type":"git","url":"https://github.com/JayceTDE/fast-apply.git"},"versions":{"0.0.3":{"name":"fast-apply","version":"0.0.3","description":"Apply an array of arguments... faster","main":"index.js","repository":{"type":"git","url":"https://github.com/JayceTDE/fast-apply.git"},"keywords":["apply","fast","faster"],"devDependencies":{"benchmark":"*"},"scripts":{"test":"node ./benchmark/fastApply.js"},"author":{"name":"Jayce Pulsipher","email":"jaycemp@gmail.com"},"license":"MIT","_id":"fast-apply@0.0.3","dist":{"shasum":"7791bb3f7f76b7064c0b73bc3e75bfad8553c861","tarball":"http://registry-npm.ywwl.com/fast-apply/download/fast-apply-0.0.3.tgz","integrity":"sha512-mZUOA0ctLDmvJOhcvtpxV4On3QykYkhxzseBchfn9mppCvyHiK86ldZklnvuTsUvoiBALM36krzR4u7INoILLA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC44jOT4jLcLs0LSAf3cBDsI5SBLGzSkZaru68fzL1kfQIhAJdTtkKk8R3275888YzBxBTK9bJS0JNxxZddV7BGT5X9"}],"size":3862,"noattachment":false,"key":"/fast-apply/-/fast-apply-0.0.3.tgz"},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"jaycetde","email":"jaycemp@gmail.com"},"maintainers":[{"name":"jaycetde","email":"jaycemp@gmail.com"}],"directories":{},"publish_time":1390851759014,"_cnpm_publish_time":1390851759014},"0.0.2":{"name":"fast-apply","version":"0.0.2","description":"Apply an array of arguments... faster","main":"index.js","repository":{"type":"git","url":"https://github.com/JayceTDE/fast-apply.git"},"keywords":["apply","fast","faster"],"author":{"name":"Jayce Pulsipher","email":"jaycemp@gmail.com"},"license":"MIT","_id":"fast-apply@0.0.2","dist":{"shasum":"d7d14a2b21592445703041f68b29b9601aaf2996","tarball":"http://registry-npm.ywwl.com/fast-apply/download/fast-apply-0.0.2.tgz","integrity":"sha512-Xi6OlrJvXjUfdm7WZ+37btnGkV9zuXeoJf3l0MWJ5yPs/6tIXAZ35zg1qsxst1TZSI84rqI3lc6TPx3nqqdu2g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC2DzDw3/jeYDtRZ9Es8h+7ltdR9qqCQGS/ROpTMviyFQIhANIAMluDsN1qSgaORm3fpo1aE9T4ZHPjhFEw6ORAyxL0"}],"size":2387,"noattachment":false,"key":"/fast-apply/-/fast-apply-0.0.2.tgz"},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"jaycetde","email":"jaycemp@gmail.com"},"maintainers":[{"name":"jaycetde","email":"jaycemp@gmail.com"}],"directories":{},"publish_time":1390162379775,"_cnpm_publish_time":1390162379775},"0.0.1":{"name":"fast-apply","version":"0.0.1","description":"Apply an array of arguments... faster","main":"index.js","repository":{"type":"git","url":"https://github.com/JayceTDE/fast-apply.git"},"keywords":["apply","fast","faster"],"author":{"name":"Jayce Pulsipher","email":"jaycemp@gmail.com"},"license":"MIT","_id":"fast-apply@0.0.1","dist":{"shasum":"7bfbb2564e614421d7f0108da41757fec8ee733c","tarball":"http://registry-npm.ywwl.com/fast-apply/download/fast-apply-0.0.1.tgz","integrity":"sha512-24MiWQDmmWg3Q8dlKa18E9jZDn4DwW2LxyPkqNvKKolzLwfIi9y/wKHq7LgG95HW+7KbUVIp7yIovr6hDY7jSQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICV84U7u4rYW9trsgBwq7Eiy0gpuQZUbpxr6vBUIob7LAiBd5StG71n0S5wjs2T26L/NfHctwtPydBZ6zY+q5E1QQQ=="}],"size":2386,"noattachment":false,"key":"/fast-apply/-/fast-apply-0.0.1.tgz"},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"jaycetde","email":"jaycemp@gmail.com"},"maintainers":[{"name":"jaycetde","email":"jaycemp@gmail.com"}],"directories":{},"publish_time":1390162179303,"_cnpm_publish_time":1390162179303},"0.0.0":{"name":"fast-apply","version":"0.0.0","description":"Apply an array of arguments... faster","main":"index.js","repository":{"type":"git","url":"https://github.com/JayceTDE/fast-apply.git"},"keywords":["apply","fast","faster"],"author":{"name":"Jayce Pulsipher","email":"jaycemp@gmail.com"},"license":"MIT","_id":"fast-apply@0.0.0","dist":{"shasum":"93dbf9ab0308c581ccf9fe479a7a28c2cf8e5137","tarball":"http://registry-npm.ywwl.com/fast-apply/download/fast-apply-0.0.0.tgz","integrity":"sha512-e8UcI1Y4NN5XVANnm7X1b39dAcXGkVAjBCjGlWzy38Uz+K8gKh4FPWJZVvfrKe7pDdD7kWxDaXmfUsF1wmU4hg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGs2/xQ4xSsA+eHYqQYpjlb6dz7bu+9vnmtbdx+baN3lAiEA3p0mPPTpxoYb8m5Tt+NxUk5aM/jN03Ysh9bBfkSYklw="}],"size":2316,"noattachment":false,"key":"/fast-apply/-/fast-apply-0.0.0.tgz"},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"jaycetde","email":"jaycemp@gmail.com"},"maintainers":[{"name":"jaycetde","email":"jaycemp@gmail.com"}],"directories":{},"publish_time":1390115022804,"_cnpm_publish_time":1390115022804}},"readme":"# fast-apply\r\n\r\nApply an array of arguments... faster.\r\n\r\n```javascript\r\n\r\nvar fastApply = require('fast-apply')\r\n  , scope = {}\r\n;\r\n\r\nfunction run() {}\r\n\r\nfastApply(run, scope, [ 'a', 'b', 'c' ]);\r\n\r\n```\r\n\r\n## Installation\r\n\r\n    $ npm install fast-apply\r\n\r\n## Dependencies\r\n\r\nnone\r\n\r\n## Speed\r\n\r\nIt uses a simple switch statement to `call` the function rather than `apply` for up to 5 arguments.\r\n\r\nWhile more than 5 arguments would run faster using `apply`, anything less will be \r\n[up to twice as fast](http://jsperf.com/many-arguments-apply-vs-switch/2)\r\n\r\nIf the scope is `null`, fastApply will run up to 3 times faster than `apply`\r\n\r\n## Limitations\r\n\r\n  - It is only optimized for 5 arguments or less. If you think the function will frequently be taking\r\n  more than 5 arguments, I suggest that you instead use `apply`","_attachments":{},"license":"MIT"}