{"action":"created","issue":{"url":"https://api.github.com/repos/airbnb/javascript/issues/1125","repository_url":"https://api.github.com/repos/airbnb/javascript","labels_url":"https://api.github.com/repos/airbnb/javascript/issues/1125/labels{/name}","comments_url":"https://api.github.com/repos/airbnb/javascript/issues/1125/comments","events_url":"https://api.github.com/repos/airbnb/javascript/issues/1125/events","html_url":"https://github.com/airbnb/javascript/issues/1125","id":182830846,"number":1125,"title":"Inconsistency on code examples","user":{"login":"Goncalom","id":6526238,"avatar_url":"https://avatars.githubusercontent.com/u/6526238?v=3","gravatar_id":"","url":"https://api.github.com/users/Goncalom","html_url":"https://github.com/Goncalom","followers_url":"https://api.github.com/users/Goncalom/followers","following_url":"https://api.github.com/users/Goncalom/following{/other_user}","gists_url":"https://api.github.com/users/Goncalom/gists{/gist_id}","starred_url":"https://api.github.com/users/Goncalom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Goncalom/subscriptions","organizations_url":"https://api.github.com/users/Goncalom/orgs","repos_url":"https://api.github.com/users/Goncalom/repos","events_url":"https://api.github.com/users/Goncalom/events{/privacy}","received_events_url":"https://api.github.com/users/Goncalom/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-13T15:59:58Z","updated_at":"2016-10-13T17:54:31Z","closed_at":"2016-10-13T17:54:31Z","body":"On line 15.3, \"Use shortcuts\" on the airbnb.io it says:\r\nhttp://airbnb.io/javascript/#comparison--shortcuts\r\n\r\n```\r\n// bad\r\nif (collection.length > 0) {\r\n  // ...stuff...\r\n}\r\n\r\n// good\r\nif (collection.length) {\r\n  // ...stuff...\r\n}\r\n```\r\n\r\nBut on the github page, it is reversed:\r\nhttps://github.com/airbnb/javascript#comparison--if\r\n\r\n```\r\n// bad\r\nif (collection.length) {\r\n  // ...stuff...\r\n}\r\n\r\n// good\r\nif (collection.length > 0) {\r\n  // ...stuff...\r\n}\r\n```\r\nWhich is the correct one?"},"comment":{"url":"https://api.github.com/repos/airbnb/javascript/issues/comments/253588257","html_url":"https://github.com/airbnb/javascript/issues/1125#issuecomment-253588257","issue_url":"https://api.github.com/repos/airbnb/javascript/issues/1125","id":253588257,"user":{"login":"ljharb","id":45469,"avatar_url":"https://avatars.githubusercontent.com/u/45469?v=3","gravatar_id":"","url":"https://api.github.com/users/ljharb","html_url":"https://github.com/ljharb","followers_url":"https://api.github.com/users/ljharb/followers","following_url":"https://api.github.com/users/ljharb/following{/other_user}","gists_url":"https://api.github.com/users/ljharb/gists{/gist_id}","starred_url":"https://api.github.com/users/ljharb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ljharb/subscriptions","organizations_url":"https://api.github.com/users/ljharb/orgs","repos_url":"https://api.github.com/users/ljharb/repos","events_url":"https://api.github.com/users/ljharb/events{/privacy}","received_events_url":"https://api.github.com/users/ljharb/received_events","type":"User","site_admin":false},"created_at":"2016-10-13T17:54:30Z","updated_at":"2016-10-13T17:54:30Z","body":"The repo is correct - I have to manually update the airbnb.io page. I'll do that now."}}
{"actor":{"display_login":"ljharb"}}