src/SearchParameters/index.js
function(attribute, operator, paramValue) {
    if (paramValue !== undefined) {
      var paramValueAsNumber = valToNumber(paramValue);
      if (!this.isNumericRefined(attribute, operator, paramValueAsNumber)) return this;
      return this.setQueryParameters({
        numericRefinements: this._clearNumericRefinements(function(value, key) {
          return key === attribute && value.op === operator && isEqual(value.val, paramValueAsNumber);
        })
      });
    } else if (operator !== undefined) {
      if (!this.isNumericRefined(attribute, operator)) return this;
      return this.setQueryParameters({
        numericRefinements: this._clearNumericRefinements(function(value, key) {
          return key === attribute && value.op === operator;
        })
      });
    }

    if (!this.isNumericRefined(attribute)) return this;
    return this.setQueryParameters({
      numericRefinements: this._clearNumericRefinements(function(value, key) {
        return key === attribute;
      })
    });
  }
function(attribute, operator, paramValue) {
    if (paramValue !== undefined) {
      var paramValueAsNumber = valToNumber(paramValue);
      if (!this.isNumericRefined(attribute, operator, paramValueAsNumber)) return this;
      return this.setQueryParameters({
        numericRefinements: this._clearNumericRefinements(function(value, key) {
          return key === attribute && value.op === operator && isEqual(value.val, paramValueAsNumber);
        })
      });
    } else if (operator !== undefined) {
      if (!this.isNumericRefined(attribute, operator)) return this;
      return this.setQueryParameters({
        numericRefinements: this._clearNumericRefinements(function(value, key) {
          return key === attribute && value.op === operator;
        })
      });
    }

    if (!this.isNumericRefined(attribute)) return this;
    return this.setQueryParameters({
      numericRefinements: this._clearNumericRefinements(function(value, key) {
        return key === attribute;
      })
    });
  }
function ( attribute , operator , paramValue ) { if ( paramValue !== undefined ) { var paramValueAsNumber = valToNumber ( paramValue ) ; if ( ! this . isNumericRefined ( attribute , operator , paramValueAsNumber ) ) return this ; return this . setQueryParameters ( { numericRefinements : this . _clearNumericRefinements ( function ( value , key ) { return key === attribute && value . op === operator && isEqual ( value . val , paramValueAsNumber ) ; } ) } ) ; } else if ( operator !== undefined ) { if ( ! this . isNumericRefined ( attribute , operator ) ) return this ; return this . setQueryParameters ( { numericRefinements : this . _clearNumericRefinements ( function ( value , key ) { return key === attribute && value . op === operator ; } ) } ) ; } if ( ! this . isNumericRefined ( attribute ) ) return this ; return this . setQueryParameters ( { numericRefinements : this . _clearNumericRefinements ( function ( value , key ) { return key === attribute ; } ) } ) ; }
Remove all the numeric filter for a given (attribute, operator)
@method
@param {string} attribute attribute to set the filter on
@param {string} [operator] operator of the filter (possible values: =, >, >=, <, <=, !=)
@param {number} [number] the value to be removed
@return {SearchParameters}
Remove all the numeric filter for a given ( attribute operator )