Home > doofinder > QueryFilter > remove

QueryFilter.remove() method

Remove a filter by a field.

Signature:

remove(name: string, value?: unknown): void;

Parameters

Parameter Type Description
name string Name of the filter.
value unknown Optional. Value to remove from the filter.

Returns:

void

Remarks

  • If the value is not provided, the filter is removed. - If the value is an object, the filter is removed. - Otherwise the value is removed from the list of terms.