Skip to main content

uniqByIdentifier()

uniqByIdentifier<T>(originalArray): T[]

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

Type Parameters

Type Parameter
T extends RequireAtLeastOne<object, "name" | "value">

Parameters

ParameterType
originalArrayT[]

Returns

T[]

Defined in

packages/react-querybuilder/src/utils/uniq.ts:26


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.