UNPKG

rc-js-util

Version:

A collection of TS and C++ utilities to help writing performant and correct applications, achieved through strict typing and (removable) invariant checking.

14 lines 304 B
/** * @public * Returns the newValue if defined, else the old value. * * @remarks * See {@link fpMaybeNewValue}. */ export function fpMaybeNewValue(newValue, oldValue) { if (newValue != null) { return newValue; } return oldValue; } //# sourceMappingURL=fp-maybe-new-value.js.map