Skip to main content

shouldRenderAsNumber()

shouldRenderAsNumber(value: any, parseNumbers?: boolean): 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

ParameterType
valueany
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.