Created
October 2, 2019 13:30
-
-
Save stefanjudis/5219d2d7f8e35a996971de43336e9024 to your computer and use it in GitHub Desktop.
Revisions
-
stefanjudis created this gist
Oct 2, 2019 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,10 @@ const CPU = { ram: '32gb', ssd: '64gb', micro: 'i7' }; const { ssd, ...newCPU } = CPU; console.log(newCPU); // Object { ram: "32gb", micro: "i7" }