Created
April 11, 2015 21:54
-
-
Save StoneCypher/b6c8e4aead8048538040 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
| // use map, but, this is how to do it without map | |
| var result = []; | |
| for (var r=0, rCount = totalRows.length; r<rCount; ++r) { | |
| var thisRowIsExcluded = false; | |
| for (var c=0, cCount = totalColumns.length; c<cCount; ++c) { | |
| var filterCriterion = totalColumns.getYourInputThingSomehowHere; | |
| if (yourFilterFailsOn(totalRows[r].whicheverColumn, filterCriterion)) { | |
| thisRowIsExcluded = true; | |
| } | |
| } | |
| if (!(thisRowIsExcluded)) { | |
| result.push(totalRows[r]); | |
| } | |
| } | |
| doReactShitWith(result); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment