uniqByIdentifier()
uniqByIdentifier<
T>(originalArray:T[]):T[]
Defined in: packages/core/src/utils/optGroupUtils.ts:141
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; }, "name" | "value"> |
Parameters
| Parameter | Type |
|---|---|
originalArray | T[] |
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.