Skip to content

Instantly share code, notes, and snippets.

@rahulmalhotra
Created January 21, 2021 11:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rahulmalhotra/afee5d65e3c3dc80d78c4bac88079f6b to your computer and use it in GitHub Desktop.
Save rahulmalhotra/afee5d65e3c3dc80d78c4bac88079f6b to your computer and use it in GitHub Desktop.
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