pragmatic-fp-ts
Version:
Opinionated functional programming library with easy use in mind
14 lines (13 loc) • 368 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.isNotNil = exports.isNil = void 0;
function isNil(value) {
return (value === null ||
value === undefined ||
(typeof value === "number" && isNaN(value)));
}
exports.isNil = isNil;
function isNotNil(value) {
return !isNil(value);
}
exports.isNotNil = isNotNil;