Skip to content

Instantly share code, notes, and snippets.

@stefanjudis
Created October 2, 2019 13:30
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 stefanjudis/5219d2d7f8e35a996971de43336e9024 to your computer and use it in GitHub Desktop.
Save stefanjudis/5219d2d7f8e35a996971de43336e9024 to your computer and use it in GitHub Desktop.
const CPU = {
ram: '32gb',
ssd: '64gb',
micro: 'i7'
};
const { ssd, ...newCPU } = CPU;
console.log(newCPU);
// Object { ram: "32gb", micro: "i7" }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment