Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2017
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. for (let [value, index] of object) {
  2. do something with rest
  3. if (index >= 1) {
  4. // do something with first item
  5. }
  6. }
  7.  
  8. Uncaught TypeError: Invalid attempt to destructure non-iterable instance
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement