re: Javascript Array.push is 945x faster than Array.concat 🤯🤔 VIEW POST


Might want to mention what the spread operator actually does, which is to spread the one argument to array.push(...arg) to multiple arguments like so: array.push(arg[0], arg[1], arg[2], ..., arg[n]).


You're right, I didn't realise that people might not know what the ES6 spread operator does. Updated the article - thanks!

code of conduct - report abuse