Skip to content

Instantly share code, notes, and snippets.

@StoneCypher
Created April 11, 2015 21:41
Show Gist options
  • Select an option

  • Save StoneCypher/735dc01b7d783989d315 to your computer and use it in GitHub Desktop.

Select an option

Save StoneCypher/735dc01b7d783989d315 to your computer and use it in GitHub Desktop.
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