{"action":"opened","issue":{"url":"https://api.github.com/repos/dudeteam/Pandora/issues/1","labels_url":"https://api.github.com/repos/dudeteam/Pandora/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/dudeteam/Pandora/issues/1/comments","events_url":"https://api.github.com/repos/dudeteam/Pandora/issues/1/events","html_url":"https://github.com/dudeteam/Pandora/issues/1","id":62040857,"number":1,"title":"Add reverse forEach","user":{"login":"JonathanPicques","id":1839757,"avatar_url":"https://avatars.githubusercontent.com/u/1839757?v=3","gravatar_id":"","url":"https://api.github.com/users/JonathanPicques","html_url":"https://github.com/JonathanPicques","followers_url":"https://api.github.com/users/JonathanPicques/followers","following_url":"https://api.github.com/users/JonathanPicques/following{/other_user}","gists_url":"https://api.github.com/users/JonathanPicques/gists{/gist_id}","starred_url":"https://api.github.com/users/JonathanPicques/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JonathanPicques/subscriptions","organizations_url":"https://api.github.com/users/JonathanPicques/orgs","repos_url":"https://api.github.com/users/JonathanPicques/repos","events_url":"https://api.github.com/users/JonathanPicques/events{/privacy}","received_events_url":"https://api.github.com/users/JonathanPicques/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dudeteam/Pandora/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-16T10:41:40Z","updated_at":"2015-03-16T10:41:40Z","closed_at":null,"body":"/**\r\n * Iterates on the given array in the reverse order.\r\n * @param array {Array} the array\r\n * @param fn {Function} a predicate to apply on each element, the loop breaks if the predicate returns true\r\n */\r\npandora.reverseForEach = function (array, fn) {\r\n    for (var i = array.length - 1; i > 0; --i) {\r\n        if (fn(array[i], i) === true) {\r\n            return;\r\n        }\r\n    }\r\n};"}}