17 lines
398 B
TypeScript
17 lines
398 B
TypeScript
/**
|
|
* 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
|
|
*/
|
|
declare function isSymbol(value: any): boolean;
|
|
export default isSymbol;
|