Skip to content

Instantly share code, notes, and snippets.

@brunosabot
Created March 30, 2022 17:49
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 brunosabot/d18b75153aecd5c27602c8366d24083a to your computer and use it in GitHub Desktop.
Save brunosabot/d18b75153aecd5c27602c8366d24083a to your computer and use it in GitHub Desktop.
const jedis = ["Yoda", "Obi-Wan", "Luke"];
const siths = ["Vader", "Sidious"];
const saberHolders = [...jedis, ...siths];
console.log(saberHolders); // ["Yoda", "Obi-Wan", "Luke", "Vader", "Sidious"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment