MCPcopy
hub / github.com/lodash/lodash / isSymbol

Function isSymbol

lodash.js:12256–12259  ·  view source on GitHub ↗

* Checks if `value` is classified as a `Symbol` primitive or object. * * @static * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a symbol, else `false`. * @example *

(value)

Source from the content-addressed store, hash-verified

12254 * // => false
12255 */
12256 function isSymbol(value) {
12257 return typeof value == 'symbol' ||
12258 (isObjectLike(value) && baseGetTag(value) == symbolTag);
12259 }
12260
12261 /**
12262 * Checks if `value` is classified as a typed array.

Callers 10

baseExtremumFunction · 0.85
baseSortedIndexFunction · 0.85
baseSortedIndexByFunction · 0.85
baseToNumberFunction · 0.85
baseToStringFunction · 0.85
compareAscendingFunction · 0.85
isKeyFunction · 0.85
toKeyFunction · 0.85
toNumberFunction · 0.85
toPathFunction · 0.85

Calls 2

isObjectLikeFunction · 0.85
baseGetTagFunction · 0.85

Tested by

no test coverage detected