function filteredCheck(_ref2) {
        var filteredItems = _ref2.filteredItems,
            localItems = _ref2.localItems,
            localFilter = _ref2.localFilter;
        // Determine if the dataset is filtered or not
        var isFiltered;

        if (!localFilter) {
          // If filter criteria is falsey
          isFiltered = false;
        } else if (looseEqual(localFilter, []) || looseEqual(localFilter, {})) {
          // If filter criteria is an empty array or object
          isFiltered = false;
        } else if (localFilter) {
          // if Filter criteria is truthy
          isFiltered = true;
        } else {
          isFiltered = false;
        }

        if (isFiltered) {
          this.clearSelected();
          this.$emit('filtered', filteredItems, filteredItems.length);
        }

        this.isFiltered = isFiltered;
      }
// And set visual state and emit events as required
And set visual state and emit events as required
And set visual state and emit events as required
function filteredCheck(_ref2) {
        var filteredItems = _ref2.filteredItems,
            localItems = _ref2.localItems,
            localFilter = _ref2.localFilter;
        var isFiltered;
        if (!localFilter) {
          isFiltered = false;
        } else if (looseEqual(localFilter, []) || looseEqual(localFilter, {})) {
          isFiltered = false;
        } else if (localFilter) {
          isFiltered = true;
        } else {
          isFiltered = false;
        }
        if (isFiltered) {
          this.clearSelected();
          this.$emit('filtered', filteredItems, filteredItems.length);
        }
        this.isFiltered = isFiltered;
      }
function filteredCheck ( _ref2 ) { var filteredItems = _ref2 . filteredItems , localItems = _ref2 . localItems , localFilter = _ref2 . localFilter ; var isFiltered ; if ( ! localFilter ) { isFiltered = false ; } else if ( looseEqual ( localFilter , [ ] ) || looseEqual ( localFilter , { } ) ) { isFiltered = false ; } else if ( localFilter ) { isFiltered = true ; } else { isFiltered = false ; } if ( isFiltered ) { this . clearSelected ( ) ; this . $emit ( 'filtered' , filteredItems , filteredItems . length ) ; } this . isFiltered = isFiltered ; }
And set visual state and emit events as required
And set visual state and emit events as required
// Determine if the dataset is filtered or not // If filter criteria is falsey // If filter criteria is an empty array or object // if Filter criteria is truthy