resolveValue MethodStatic

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

resolveValue<T>(value: undefined | T, defaultValue: T): T

Parameter Type Description
value undefined | T  
defaultValue T  

Returns - T

Defined in

Last Updated: 20 June, 2023