Last active
February 27, 2018 17:53
-
-
Save acchou/08b2c65d8574f57a055ae262bd2d93b9 to your computer and use it in GitHub Desktop.
Array destructure example
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 a = [1, 2, 3]; | |
let [x, y, z] = a; // x = 1; y = 2; z = 3; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment