3 ms·
Fastest way to slice arguments in JavaScript
- NaNaN 12y agoSpecific to Node.js? On Firefox Nightly it got a bad result. http://jsperf.com/fastest-slice-method http://jsperf.com/fastest-slice-method
- j03w 12y agoCould be, I remember reading an article about how using Array.proto.slice on arguments will not get optimised by V8. https://github.com/petkaantonov/bluebird/wiki/Optimization-killers https://github.com/petkaantonov/bluebird/wiki/Optimization-k...