Skip to main content

toFlatOptionArray()

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

Defined in: packages/react-querybuilder/src/utils/optGroupUtils.ts:268

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

Type Parameters

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

Parameters

ParameterType
arrOL

Returns

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.