UNPKG

type-fns

Version:

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

17 lines 501 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isNotUndefined = exports.isDefined = void 0; /** * checks whether the value is not undefined */ const isDefined = (val) => typeof val !== 'undefined'; exports.isDefined = isDefined; /** * checks whether the value is not undefined * * note * - alias of isDefined */ const isNotUndefined = (val) => (0, exports.isDefined)(val); exports.isNotUndefined = isNotUndefined; //# sourceMappingURL=isNotUndefined.js.map