uniqOptGroups()
uniqOptGroups<
T>(originalArray:FlexibleOptionGroup<T>[]):OptionGroup<ToFullOption<T>>[]
Generates a new OptionGroup array with duplicates
removed based on the identifying property (value or name).
Type Parameters
| Type Parameter |
|---|
T extends BaseOption<string> |
Parameters
| Parameter | Type |
|---|---|
originalArray | FlexibleOptionGroup<T>[] |
Returns
OptionGroup<ToFullOption<T>>[]
Defined in
packages/react-querybuilder/src/utils/optGroupUtils.ts:226
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.