Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
This code snippet is used in ES6 Spread Operator JavaScript Tutorial by SFDC Stop
let features = ['Great Speed', 'Good Color', 'Comfort', 'Good Looks'];
let moreFeatures = ['Great Mileage', 'Amazing Design'];
features.push(...moreFeatures);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment