Skip to main content

toFlatOptionArray()

toFlatOptionArray<T, OL>(arr: OL): T[]

Flattens FlexibleOptionGroup arrays into BaseOption arrays. If the array is already flat, it is returned as is.

Type Parameters

Type Parameter
T extends FullOption<string>
OL extends OptionGroup<FullOption<string>>[] | FullOption<string>[]

Parameters

ParameterType
arrOL

Returns

T[]

Defined in

packages/react-querybuilder/src/utils/optGroupUtils.ts:219


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.