UNPKG

is-explicit

Version:

Combines instance of operator and typeof operator in a way that works seamlessly with objects and literals.

20 lines (14 loc) 573 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; /******************************************************************************/ // Main /******************************************************************************/ const isDefined = value => value != null && !Number.isNaN(value); /******************************************************************************/ // Exports /******************************************************************************/ var _default = isDefined; exports.default = _default;