Created
October 20, 2016 02:45
-
-
Save basekays/b01e8e76b9a81a7b826d921b6b6475a2 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
| var _ = {}; | |
| _.reject = function(list, condition) { | |
| var resultArray = []; | |
| for (var i = 0; i<list.length; i++) { | |
| if (!condition(list[i])) { | |
| resultArray.push(list[i]); | |
| } | |
| } | |
| return resultArray; | |
| }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
looks good also :)