bevacqua / js

:art: A JavaScript Quality Guide

Home Page:https://ponyfoo.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Address performance hit of [].slice.call(arguments)

bttmly opened this issue · comments

There is a substantial performance hit associated with using arguments in certain ways, as outlined in this great post. While [].slice.call(arguments) is the cleanest way to cast arguments to an array, and in many cases it's not necessary to fully optimize, I think it's at least worth mentioning.

You're right, would you like to contribute that? Otherwise I'll do when I have some free time

Sure, will do shortly