getFirstOption()
getFirstOption<
Opt
>(arr
?):null
|GetOptionIdentifierType
<Opt
>
Gets the first option from an OptionList.
Type Parameters
Type Parameter |
---|
Opt extends BaseOption <string > |
Parameters
Parameter | Type |
---|---|
arr ? | FlexibleOptionGroup <Opt >[] | Opt [] |
Returns
null
| GetOptionIdentifierType
<Opt
>
Defined in
packages/react-querybuilder/src/utils/optGroupUtils.ts:197
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.