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