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