Home > doofinder > QueryFilter > contains

QueryFilter.contains() method

Check whether there’s a filter for the provided name and it contains the provided value or not.

Signature:

contains(name: string, value: unknown): boolean;

Parameters

Parameter Type Description
name string Name of the field.
value unknown The value for the filter.

Returns:

boolean

A boolean value.