Skip to main content

uniqByIdentifier()

uniqByIdentifier<T extends RequireAtLeastOne<{ name: string; value: string; }, "value" | "name">>(originalArray: T[]): T[]

Defined in: packages/core/src/utils/optGroupUtils.ts:137

Generates a new array of objects with duplicates removed based on the identifying property (value or name)

Type Parameters​

Type Parameter
T extends RequireAtLeastOne<{ name: string; value: string; }, "value" | "name">

Parameters​

ParameterType
originalArrayT[]

Returns​

T[]


caution

API documentation is generated from the latest commit on the main branch. It may be somewhat inconsistent with official releases of React Query Builder.