shouldRenderAsNumber()
shouldRenderAsNumber(
value
,parseNumbers
?):boolean
Determines whether formatQuery should render the given value as a number.
As long as parseNumbers
is true
, number
and bigint
values will return true
and
string
values will return true
if they test positive against numericRegex.
Parameters
Parameter | Type |
---|---|
value | any |
parseNumbers ? | boolean |
Returns
boolean
Defined in
packages/react-querybuilder/src/utils/formatQuery/utils.ts:136
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.