Skip to main content

getFirstOption()

getFirstOption<Opt>(arr?): null | GetOptionIdentifierType<Opt>

Gets the first option from an OptionList.

Type Parameters

Type Parameter
Opt extends BaseOption<string>

Parameters

ParameterType
arr?FlexibleOptionGroup<Opt>[] | Opt[]

Returns

null | GetOptionIdentifierType<Opt>

Defined in

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


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.