Skip to content

Instantly share code, notes, and snippets.

@acchou
Last active February 27, 2018 17:53
Show Gist options
  • Save acchou/08b2c65d8574f57a055ae262bd2d93b9 to your computer and use it in GitHub Desktop.
Save acchou/08b2c65d8574f57a055ae262bd2d93b9 to your computer and use it in GitHub Desktop.
Array destructure example
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