* 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)
| 897 | * // => false |
| 898 | */ |
| 899 | function 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` |
no test coverage detected
searching dependent graphs…