{"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":{},"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`","publish_time":1390851759014,"_cnpm_publish_time":1390851759014,"dist-tags":{"latest":"0.0.3"}}