uniqOptList()
uniqOptList<
T
>(originalArray
:FlexibleOptionList
<T
>):WithUnknownIndex
<BaseOption
<string
> &FullOption
<string
>>[] |OptionGroup
<ToFullOption
<T
>>[]
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
> & FullOption
<string
>>[] | OptionGroup
<ToFullOption
<T
>>[]
Defined in
packages/react-querybuilder/src/utils/optGroupUtils.ts:253
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.