Created
December 13, 2017 08:52
-
-
Save ferdiemmen/4da598b46e2b934972b257cac39c5a13 to your computer and use it in GitHub Desktop.
Deconstruction array items
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
## Deconstruction array items | |
const myArray = ['apple', 'nut', 'mies']; | |
const [apple] = myArray; | |
console.log(apple); | |
'apple' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment