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, arg, arg, ..., arg[n]).
array.push(arg, arg, arg, ..., arg[n])
You're right, I didn't realise that people might not know what the ES6 spread operator does. Updated the article - thanks!
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.