Advertisement
Guest User

Untitled

a guest
Sep 19th, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. const {0:x, 2:y} = ['a', 'b', 'c'];
  2. // x = 'a'
  3. // y = 'c'
  4.  
  5.  
  6. const [something] = [1, 2, 3, 4]
  7. // something = 1
  8.  
  9. const { some, thing } = someObj;
  10. // instead of someObj.some and someObj.thing
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement