resolveNumber MethodStatic

If given a number, return it. If given undefined, return defaultValue.

resolveNumber(value: number | undefined, defaultValue: number = 0): number

Parameter Type Description
value number | undefined  
defaultValue number  

Returns - number

Defined in

Last Updated: 13 June, 2024