Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for (let [value, index] of object) {
- do something with rest
- if (index >= 1) {
- // do something with first item
- }
- }
- Uncaught TypeError: Invalid attempt to destructure non-iterable instance
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement