shouldRenderAsNumber()
shouldRenderAsNumber(
value:any,parseNumbers?:boolean):boolean
Defined in: packages/core/src/utils/formatQuery/utils.ts:188
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
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.