Created
March 13, 2020 06:32
-
-
Save nonseodion/581680f23ae852892549a020cbca767d 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
let ifebhor = { | |
carol: "rude", | |
damian: "caring", | |
mac: "handsome", | |
flora: "cute", | |
aave: "class bully" | |
} | |
// If Flora repeats a class. I'll have to remove her name from the object a way | |
//to do that would be to use the rest parameter. | |
let {flora, …rest} = ifebhor; | |
console.log(flora); | |
//cute | |
console.log(rest); | |
//Object { carol: "rude", damian: "caring", mac: "handsome", aave: "class bully" } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment