UNPKG

@newdash/newdash

Version:

javascript/typescript utility library

19 lines (18 loc) 668 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); const isObject_1 = __importDefault(require("../isObject")); /** * Checks if `value` is suitable for strict equality comparisons, i.e. `===`. * * @private * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` if suitable for strict * equality comparisons, else `false`. */ function isStrictComparable(value) { return value === value && !(0, isObject_1.default)(value); } exports.default = isStrictComparable;