{"action":"created","issue":{"url":"https://api.github.com/repos/6to5/6to5.github.io/issues/112","labels_url":"https://api.github.com/repos/6to5/6to5.github.io/issues/112/labels{/name}","comments_url":"https://api.github.com/repos/6to5/6to5.github.io/issues/112/comments","events_url":"https://api.github.com/repos/6to5/6to5.github.io/issues/112/events","html_url":"https://github.com/6to5/6to5.github.io/issues/112","id":56184590,"number":112,"title":"Example on the compare page is outdated","user":{"login":"FWeinb","id":1250430,"avatar_url":"https://avatars.githubusercontent.com/u/1250430?v=3","gravatar_id":"","url":"https://api.github.com/users/FWeinb","html_url":"https://github.com/FWeinb","followers_url":"https://api.github.com/users/FWeinb/followers","following_url":"https://api.github.com/users/FWeinb/following{/other_user}","gists_url":"https://api.github.com/users/FWeinb/gists{/gist_id}","starred_url":"https://api.github.com/users/FWeinb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FWeinb/subscriptions","organizations_url":"https://api.github.com/users/FWeinb/orgs","repos_url":"https://api.github.com/users/FWeinb/repos","events_url":"https://api.github.com/users/FWeinb/events{/privacy}","received_events_url":"https://api.github.com/users/FWeinb/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-02-02T00:05:14Z","updated_at":"2015-02-02T00:10:24Z","closed_at":"2015-02-02T00:10:05Z","body":"The example on the  [compare page]() is outdated.\r\n\r\nYou say that \r\n```js\r\nvar seattlers = [for (c of customers) if (c.city == \"Seattle\") { name: c.name, age: c.age }];\r\n```\r\nwill be transformed to:\r\n\r\n```js\r\nvar seattlers = Array.from(customers).filter(function (c) {\r\n  return c.city == \"Seattle\";\r\n}).map(function (c) {\r\n  return {\r\n    name: c.name,\r\n    age: c.age\r\n  };\r\n});\r\n```\r\n\r\nit does't look that nice anymore.\r\n\r\n```js\r\n\"use strict\";\r\n\r\nvar seattlers = (function () {\r\n  var _seattlers = [];\r\n\r\n  for (var _iterator = customers[Symbol.iterator](), _step; !(_step = _iterator.next()).done;) {\r\n    var c = _step.value;\r\n    if (c.city == \"Seattle\") {\r\n      _seattlers.push({ name: c.name, age: c.age });\r\n    }\r\n  }\r\n\r\n  return _seattlers;\r\n})();\r\n```\r\nThe loose mode is making it even worse I made a simple in the [REPL](http://bit.ly/1Ez56ZN)."},"comment":{"url":"https://api.github.com/repos/6to5/6to5.github.io/issues/comments/72392840","html_url":"https://github.com/6to5/6to5.github.io/issues/112#issuecomment-72392840","issue_url":"https://api.github.com/repos/6to5/6to5.github.io/issues/112","id":72392840,"user":{"login":"FWeinb","id":1250430,"avatar_url":"https://avatars.githubusercontent.com/u/1250430?v=3","gravatar_id":"","url":"https://api.github.com/users/FWeinb","html_url":"https://github.com/FWeinb","followers_url":"https://api.github.com/users/FWeinb/followers","following_url":"https://api.github.com/users/FWeinb/following{/other_user}","gists_url":"https://api.github.com/users/FWeinb/gists{/gist_id}","starred_url":"https://api.github.com/users/FWeinb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FWeinb/subscriptions","organizations_url":"https://api.github.com/users/FWeinb/orgs","repos_url":"https://api.github.com/users/FWeinb/repos","events_url":"https://api.github.com/users/FWeinb/events{/privacy}","received_events_url":"https://api.github.com/users/FWeinb/received_events","type":"User","site_admin":false},"created_at":"2015-02-02T00:10:24Z","updated_at":"2015-02-02T00:10:24Z","body":"This is related to #40"}}