/**
 * Type guard that checks of `null`.
 *
 * @public
 */
export function isNullable(value) {
    return value === undefined || value === null;
}
/**
 * Type guard that checks of not `null`.
 *
 * @public
 */
export function isNotNullable(value) {
    return !isNullable(value);
}
/**
 * Returns the otherwise value if a value is nullable.
 *
 * @public
 */
export function otherwiseNullable(value, otherwise) {
    return isNotNullable(value) ? value : otherwise;
}
/**
 * @public
 */
export var Nullable;
(function (Nullable) {
    Nullable.NULL = null;
})(Nullable || (Nullable = {}));
//# sourceMappingURL=Nullable.js.map