Created
April 11, 2015 21:41
-
-
Save StoneCypher/735dc01b7d783989d315 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
| result = totalrows.filter(function(Row) { | |
| // i think es6 has functional all, but i forget what it's called, so | |
| var passing = true; | |
| columnFilters.map(function(Column) { | |
| if (!(Column.filter.passes(Row.item))) { | |
| passing = false; | |
| break; | |
| } | |
| }); | |
| return passing; | |
| }) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment