classes/table.js
/**
     * Extend API object with default filters
     * @param {Object} filters Custom filters
     * @param {String[]} exclude list of columns for which default filters should not be applied
     * @return {Object}
     */
Extend API object with default filters
@param {Object} filters Custom filters
@param {String[]} exclude list of columns for which default filters should not be applied
@return {Object}
Extend API object with default filters @param { Object } filters Custom filters @param { String [] } exclude list of columns for which default filters should not be applied @return { Object }
defaultFilters(filters, exclude = []) {
        let excludeFilters = [];
        _.each(exclude, function(excludeColumn){
            excludeFilters = _.concat(excludeFilters,
                    [excludeColumn, `${excludeColumn}s`, `not_${excludeColumn}`,
                    `not_${excludeColumn}s`, `null_${excludeColumn}`, `not_null_${excludeColumn}`]);
        });
        return _.defaultsDeep(filters, _.omit(this.filtersAPI, excludeFilters));
    }
defaultFilters ( filters , exclude = [ ] ) { let excludeFilters = [ ] ; _ . each ( exclude , function ( excludeColumn ) { excludeFilters = _ . concat ( excludeFilters , [ excludeColumn , ` ${ excludeColumn } ` , ` ${ excludeColumn } ` , ` ${ excludeColumn } ` , ` ${ excludeColumn } ` , ` ${ excludeColumn } ` ] ) ; } ) ; return _ . defaultsDeep ( filters , _ . omit ( this . filtersAPI , excludeFilters ) ) ; }
Extend API object with default filters
 @param {Object} filters Custom filters
 @param {String[]} exclude list of columns for which default filters should not be applied
 @return {Object}
Extend API object with default filters @param { Object } filters Custom filters @param { String [] } exclude list of columns for which default filters should not be applied @return { Object }