MCPcopy Create free account
hub / github.com/Lemoncode/fonk / isSymbol

Function isSymbol

src/helpers/get.js:899–904  ·  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 * * _.isSymbol(Symbol.iterator); * //

(value)

Source from the content-addressed store, hash-verified

897 * // => false
898 */
899function isSymbol(value) {
900 return (
901 typeof value == 'symbol' ||
902 (isObjectLike(value) && objectToString.call(value) == symbolTag)
903 );
904}
905
906/**
907 * Converts `value` to a string. An empty string is returned for `null`

Callers 3

baseToStringFunction · 0.70
isKeyFunction · 0.70
toKeyFunction · 0.70

Calls 1

isObjectLikeFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…