resolveNumber MethodStatic

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

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

Parameter Type Description
value undefined | number  
defaultValue number  

Returns - number

Defined in

Last Updated: 12 June, 2024