Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Spreading allocates a new array. Most things you can do with spread you can do with normal functions that either just directly access an entry or mutate an array directly. [first, …rest] is nice, but will always be slower than direct access.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: