Home > rc-js-util > fpMaybeNewValue
Returns the newValue if defined, else the old value.
Signature:
export declare function fpMaybeNewValue<TValue>(newValue: TValue | null | undefined, oldValue: TValue): TValue;
Parameter | Type | Description |
---|---|---|
newValue | TValue | null | undefined | |
oldValue | TValue |
Returns:
TValue
See fpMaybeNewValue().