Closed octatone closed 10 years ago
Not proud about the amount of code in this algo, but slice.call is ~40% slower than directly copying to an array for arguments objects (what we normally use this fn for). Even with the skip logic and math.
http://jsperf.com/arguments-to-array-doch
Will test and profile in-app before setting to for-review
Not proud about the amount of code in this algo, but slice.call is ~40% slower than directly copying to an array for arguments objects (what we normally use this fn for). Even with the skip logic and math.
http://jsperf.com/arguments-to-array-doch