Created
August 4, 2016 06:37
-
-
Save christiearcus/a85bcb789f91f8e131724f987320d130 to your computer and use it in GitHub Desktop.
array-object-destructuring
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 avengers = ['Natasha Romanoff', 'Tony Stark', 'Steve Rogers']; | |
const ['blackWidow', ...theOthers] = avengers; | |
// blackWidow = 'Natasha Romanoff | |
// theOthers = ['Tony Stark', 'Steve Rogers'] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment