src/js/table/TableStore.js
function(data, filters) {
        return _.filter(_.map(data, function(item) {
            var shown = true;

            _.each(filters, function(filter) {
                if (item[filter.dataProperty] === filter.filterValue) {
                    if (filter.checked) {
                        item = _.cloneDeep(item); //Clone this item since we're going to modify it
                        if (!item.shownByAdvancedFilters) {
                            item.shownByAdvancedFilters = [];
                        }
                        item.shownByAdvancedFilters.push(filter.dataProperty);
                        shown = true;
                    }
                    else if (!item.shownByAdvancedFilters) {
                        shown = false;
                    }
                }
            });

            if (shown) {
                return item;
            }
        }));
    }
function(data, filters) {
        return _.filter(_.map(data, function(item) {
            var shown = true;

            _.each(filters, function(filter) {
                if (item[filter.dataProperty] === filter.filterValue) {
                    if (filter.checked) {
                        item = _.cloneDeep(item); //Clone this item since we're going to modify it
                        if (!item.shownByAdvancedFilters) {
                            item.shownByAdvancedFilters = [];
                        }
                        item.shownByAdvancedFilters.push(filter.dataProperty);
                        shown = true;
                    }
                    else if (!item.shownByAdvancedFilters) {
                        shown = false;
                    }
                }
            });

            if (shown) {
                return item;
            }
        }));
    }
Filters out table data where any property value equals a matching property value on an advanced filter
unless the advanced filter has been checked.
@param  {Array} data    Cloned Table.data.
@param  {Array} filters Array of advanced filters
@return {Array} The subset of filtered data.