Skip to content

Instantly share code, notes, and snippets.

@rahulmalhotra
Created January 21, 2021 11:46
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/3b898a27e8b4c5526e88489616b9ad2b to your computer and use it in GitHub Desktop.
Save rahulmalhotra/3b898a27e8b4c5526e88489616b9ad2b 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];
console.log(moreFeatures);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment