sisense.com
✅ You are viewing documentation for the latest version of Compose SDK.
Version:

Function findFilter

findFilter(filters, searchFn): Filter | undefined

Finds a filter in an array of filters or filter relations. Returns the first filter that satisfies the provided search function.

Parameters

ParameterTypeDescription
filtersFilterRelations | Filter[] | undefinedAn array of filters or filter relations to search.
searchFn(filter) => booleanA function that takes a filter and returns a boolean indicating whether the filter satisfies the search criteria.

Returns

Filter | undefined

The first filter that satisfies the search function, or undefined if no filter is found.

Last Updated: