Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // 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);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement