12345678910111213141516171819202122232425262728 |
- "use strict";
- // @ts-nocheck
- var __importDefault = (this && this.__importDefault) || function (mod) {
- return (mod && mod.__esModule) ? mod : { "default": mod };
- };
- Object.defineProperty(exports, "__esModule", { value: true });
- const getTag_js_1 = __importDefault(require("./getTag.cjs"));
- /**
- * Checks if `value` is classified as a `Symbol` primitive or object.
- *
- * @since 4.0.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
- * @example
- *
- * isSymbol(Symbol.iterator)
- * // => true
- *
- * isSymbol('abc')
- * // => false
- */
- function isSymbol(value) {
- const type = typeof value;
- return (type === "symbol" ||
- (type === "object" && value != null && (0, getTag_js_1.default)(value) === "[object Symbol]"));
- }
- exports.default = isSymbol;
|