{"action":"closed","issue":{"url":"https://api.github.com/repos/babel/babel/issues/1223","labels_url":"https://api.github.com/repos/babel/babel/issues/1223/labels{/name}","comments_url":"https://api.github.com/repos/babel/babel/issues/1223/comments","events_url":"https://api.github.com/repos/babel/babel/issues/1223/events","html_url":"https://github.com/babel/babel/issues/1223","id":67677867,"number":1223,"title":"Iterating over a range the ES6 way?","user":{"login":"jsg2021","id":577453,"avatar_url":"https://avatars.githubusercontent.com/u/577453?v=3","gravatar_id":"","url":"https://api.github.com/users/jsg2021","html_url":"https://github.com/jsg2021","followers_url":"https://api.github.com/users/jsg2021/followers","following_url":"https://api.github.com/users/jsg2021/following{/other_user}","gists_url":"https://api.github.com/users/jsg2021/gists{/gist_id}","starred_url":"https://api.github.com/users/jsg2021/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsg2021/subscriptions","organizations_url":"https://api.github.com/users/jsg2021/orgs","repos_url":"https://api.github.com/users/jsg2021/repos","events_url":"https://api.github.com/users/jsg2021/events{/privacy}","received_events_url":"https://api.github.com/users/jsg2021/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-10T20:38:12Z","updated_at":"2015-04-10T20:39:26Z","closed_at":"2015-04-10T20:39:26Z","body":"My colleague asked me why didn't this work:\r\n```\r\nfor (let i of 7){\r\n  console.log(i);\r\n}\r\n```\r\nor ```console.log([...7])```\r\n\r\nThe first doesn't work only because 7[Symbol.iterator] isn't defined. no big deal. But that left me wondering what is the proper way? has it solidified?"}}