Created
October 2, 2019 13:30
-
-
Save stefanjudis/5219d2d7f8e35a996971de43336e9024 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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