4 ms·
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 arra
by dexwiz 3y ago
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.