Created
February 5, 2017 09:35
-
-
Save cyrilletuzi/69b883737d29965dc5afee5e2b335eff 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 user = { | |
firstName: `Henri`, | |
lastName: `Bergson` | |
}; | |
let { firstName = `default`, age = 0 } = user; | |
firstName; // `Henri` | |
age; // 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment