resolveToUndefined MethodStatic

If given value matches a target, return undefined. Otherwise return the value.

resolveToUndefined<T>(value: undefined | T, targetValue: T): undefined | T

Parameter Type Description
value undefined | T  
targetValue T  

Returns - undefined | T

Defined in

Last Updated: 12 June, 2024