Closed cowboy closed 11 years ago
Why do you do var args = Array.prototype.slice.call(arguments) if you only ever access args.length and args[i]?
var args = Array.prototype.slice.call(arguments)
args.length
args[i]
I guess, as less you are touching arguments as better: http://kangax.github.com/jstests/arguments_perf_test/
Why do you do
var args = Array.prototype.slice.call(arguments)
if you only ever accessargs.length
andargs[i]
?