Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
var filters = {
category1: {
filter1: false,
filter2: true
},
category2: {
filter1: true,
filter2: false
}
}
var anyFilterApplied = false;
_.each(Object.keys(filters), function(category) {
var categoryFilters = filters[category];
_.each(Object.keys(categoryFilters), function(f) {
if (categoryFilters[f] == 'true') {
anyFilterApplied = true;
}
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment