Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const {0:x, 2:y} = ['a', 'b', 'c'];
- // x = 'a'
- // y = 'c'
- const [something] = [1, 2, 3, 4]
- // something = 1
- const { some, thing } = someObj;
- // instead of someObj.some and someObj.thing
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement