JsonUtils.asInt Function
Get a value as an integer.
asInt(json: any, defaultVal: number0): number
@returns the value of json as an integer, or default value
Parameter | Type | Description |
---|---|---|
json | any | the input JSON object |
defaultVal | number | default value if json cannot be converted to integer |
Returns - number
the value of json as an integer, or default value
Defined in
- core/bentley/src/JsonUtils.ts Line 26
Last Updated: 14 November, 2024
Found something wrong, missing, or unclear on this page?Raise an issue in our repo.