DEV Community

Discussion on: 10 ways to use the spread operator in JavaScript

Collapse
 
jdnichollsc profile image
J.D Nicholls

Take care of the performance when you're pushing an item :)

Collapse
 
dailydevtips1 profile image
Chris Bongers

I think in most cases the performance won't be exceeded when using it for everyday stuff most of the time I use it it's to push one item in an array smaller than 100, it doesn't really seem to affect things.

But valid point to keep in mind for bigger array