Skip to main content

uniqOptList()

uniqOptList<T>(originalArray): OptionGroup <ToFullOption<T>>[] | WithUnknownIndex <BaseOption<string> & FullOption<string>>[]

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

ParameterType
originalArrayFlexibleOptionList<T>

Returns

OptionGroup <ToFullOption<T>>[] | WithUnknownIndex <BaseOption<string> & FullOption<string>>[]

Source

packages/react-querybuilder/src/utils/uniq.ts:73


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.