{"action":"created","issue":{"url":"https://api.github.com/repos/sindresorhus/loud-rejection/issues/12","labels_url":"https://api.github.com/repos/sindresorhus/loud-rejection/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/sindresorhus/loud-rejection/issues/12/comments","events_url":"https://api.github.com/repos/sindresorhus/loud-rejection/issues/12/events","html_url":"https://github.com/sindresorhus/loud-rejection/pull/12","id":124078162,"number":12,"title":"Refactoring Array#reduce into Array#findIndex","user":{"login":"timdp","id":201034,"avatar_url":"https://avatars.githubusercontent.com/u/201034?v=3","gravatar_id":"","url":"https://api.github.com/users/timdp","html_url":"https://github.com/timdp","followers_url":"https://api.github.com/users/timdp/followers","following_url":"https://api.github.com/users/timdp/following{/other_user}","gists_url":"https://api.github.com/users/timdp/gists{/gist_id}","starred_url":"https://api.github.com/users/timdp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timdp/subscriptions","organizations_url":"https://api.github.com/users/timdp/orgs","repos_url":"https://api.github.com/users/timdp/repos","events_url":"https://api.github.com/users/timdp/events{/privacy}","received_events_url":"https://api.github.com/users/timdp/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-12-28T15:04:21Z","updated_at":"2015-12-29T16:54:02Z","closed_at":"2015-12-29T14:41:44Z","pull_request":{"url":"https://api.github.com/repos/sindresorhus/loud-rejection/pulls/12","html_url":"https://github.com/sindresorhus/loud-rejection/pull/12","diff_url":"https://github.com/sindresorhus/loud-rejection/pull/12.diff","patch_url":"https://github.com/sindresorhus/loud-rejection/pull/12.patch"},"body":"The logic that finds the index of the item seemed like a good candidate for ES6's `Array.prototype.findIndex`, so I looked for a lightweight ponyfill to make the code more readable. The closest existing one I could find was `array-findindex`."},"comment":{"url":"https://api.github.com/repos/sindresorhus/loud-rejection/issues/comments/167829198","html_url":"https://github.com/sindresorhus/loud-rejection/pull/12#issuecomment-167829198","issue_url":"https://api.github.com/repos/sindresorhus/loud-rejection/issues/12","id":167829198,"user":{"login":"timdp","id":201034,"avatar_url":"https://avatars.githubusercontent.com/u/201034?v=3","gravatar_id":"","url":"https://api.github.com/users/timdp","html_url":"https://github.com/timdp","followers_url":"https://api.github.com/users/timdp/followers","following_url":"https://api.github.com/users/timdp/following{/other_user}","gists_url":"https://api.github.com/users/timdp/gists{/gist_id}","starred_url":"https://api.github.com/users/timdp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timdp/subscriptions","organizations_url":"https://api.github.com/users/timdp/orgs","repos_url":"https://api.github.com/users/timdp/repos","events_url":"https://api.github.com/users/timdp/events{/privacy}","received_events_url":"https://api.github.com/users/timdp/received_events","type":"User","site_admin":false},"created_at":"2015-12-29T16:54:02Z","updated_at":"2015-12-29T16:54:02Z","body":":cake: "}}