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 280 B
/** * @public * Normalizes `undefined` input to `null`. * * @remarks * See {@link fpNormalizeToNull}. */ export function fpNormalizeToNull(value) { if (value === undefined) { return null; } return value; } //# sourceMappingURL=fp-normalize-to-null.js.map