Created
February 21, 2017 22:17
-
-
Save wheresrhys/c12bb321f0c2251981cfcfb3c7652796 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (function(response) { | |
| var output = []; | |
| for (var i = 0; i < response.length; i++) { | |
| if (response[i].type === 'PullRequestEvent') { | |
| output.push(response[i]) | |
| } | |
| } | |
| return output; | |
| }) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (function(response) { | |
| return response.filter(function(item) { | |
| if (item.type === 'PullRequestEvent') { | |
| return true | |
| } else { | |
| return false | |
| } | |
| }) | |
| }) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (function(response) { | |
| return response.filter(item => item.type === 'PullRequestEvent') | |
| }) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment