uniqOptList()
uniqOptList<
T>(originalArray:FlexibleOptionList<T>):WithUnknownIndex<BaseOption<string> & {[key:string]:unknown;disabled?:boolean;label:string;name:string;value:string; }>[] |OptionGroup<ToFullOption<T>>[]
Defined in: packages/core/src/utils/optGroupUtils.ts:370
Generates a new Option or OptionGroup array with duplicates
removed based on the identifier property (value or name).
Type Parameters
| Type Parameter |
|---|
T extends BaseOption<string> |
Parameters
| Parameter | Type |
|---|---|
originalArray | FlexibleOptionList<T> |
Returns
WithUnknownIndex<BaseOption<string> & {[key: string]: unknown; disabled?: boolean; label: string; name: string; value: string; }>[] | OptionGroup<ToFullOption<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.