- Preparing search index...
- The search index is not available
moonpiebot
Function convertUndefinedToCustomValue
- convertUndefinedToCustomValue<TValue, TCustomValue>(value: OrUndef<TValue>, customValue: TCustomValue): TValue | TCustomValue
-
Parameters
-
value: OrUndef<TValue>
-
customValue: TCustomValue
Returns TValue | TCustomValue
Convert a value to a custom value if undefined.
Returns
Custom value if undefined otherwise the value.