src/SearchParameters/index.js
function isExcludeRefined(facet, value) {
    if (!this.isConjunctiveFacet(facet)) {
      throw new Error(facet + ' is not defined in the facets attribute of the helper configuration');
    }
    return RefinementList.isRefined(this.facetsExcludes, facet, value);
  }
function isExcludeRefined(facet, value) {
    if (!this.isConjunctiveFacet(facet)) {
      throw new Error(facet + ' is not defined in the facets attribute of the helper configuration');
    }
    return RefinementList.isRefined(this.facetsExcludes, facet, value);
  }
Returns true if the facet contains exclusions or if a specific value is
excluded.

@method
@param {string} facet name of the attribute for used for faceting
@param {string} [value] optional value. If passed will test that this value
is filtering the given facet.
@return {boolean} returns true if refined