UNPKG

type-fns

Version:

A set of types, type checks, and type guards for simpler, safer, and easier to read code.

19 lines 771 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isPresent = void 0; const withAssure_1 = require("../wrappers/withAssure"); const isPresent_assess_1 = require("./isPresent.assess"); const assure = (0, withAssure_1.asAssure)(isPresent_assess_1.isPresentAssess, { name: 'isPresent' }); /** * checks whether the value is defined and is not null * * refs * - https://github.com/microsoft/TypeScript/issues/16069#issuecomment-566222173 */ const isPresentWithAssure = function (...input) { return (0, isPresent_assess_1.isPresentAssess)(...input); }; exports.isPresent = isPresentWithAssure; isPresentWithAssure.assess = isPresent_assess_1.isPresentAssess; isPresentWithAssure.assure = assure; //# sourceMappingURL=isPresent.js.map