DEV Community

Discussion on: 2 Ways to Merge Arrays in JavaScript

Collapse
 
lexlohr profile image
Alex Lohr

To emulate spread parameters in older Javascript, you can use cars.push.apply(cars, trucks). However, that doesn't read half as nice.

Collapse
 
samanthaming profile image
Samantha Ming

older support is definitely very important, especially if all your clients refuse to upgrade to newer browsers 😝