{"action":"opened","issue":{"url":"https://api.github.com/repos/montagejs/collections/issues/139","labels_url":"https://api.github.com/repos/montagejs/collections/issues/139/labels{/name}","comments_url":"https://api.github.com/repos/montagejs/collections/issues/139/comments","events_url":"https://api.github.com/repos/montagejs/collections/issues/139/events","html_url":"https://github.com/montagejs/collections/issues/139","id":124882212,"number":139,"title":"Array#find is implemented wrong","user":{"login":"kylehg","id":766868,"avatar_url":"https://avatars.githubusercontent.com/u/766868?v=3","gravatar_id":"","url":"https://api.github.com/users/kylehg","html_url":"https://github.com/kylehg","followers_url":"https://api.github.com/users/kylehg/followers","following_url":"https://api.github.com/users/kylehg/following{/other_user}","gists_url":"https://api.github.com/users/kylehg/gists{/gist_id}","starred_url":"https://api.github.com/users/kylehg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kylehg/subscriptions","organizations_url":"https://api.github.com/users/kylehg/orgs","repos_url":"https://api.github.com/users/kylehg/repos","events_url":"https://api.github.com/users/kylehg/events{/privacy}","received_events_url":"https://api.github.com/users/kylehg/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-05T02:27:18Z","updated_at":"2016-01-05T02:27:18Z","closed_at":null,"body":"Your implementation of `Array.prototype.find()` is wrong — it returns the index of the matching element, not the element itself. See the MDN article on [`.find()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/find) — you've implemented `.findIndex`.\r\n\r\nRelatedly, it's very upsetting that this library doesn't bother to check `Array.prototype` for a native version first before overwriting. This ruins the party for anyone who consumes this library as a node module, even if it's only as a second-order dependency."}}