Checks if value is classified as a Symbol primitive or object.
value
Symbol
The value to check.
Returns true if value is a symbol, else false.
true
false
5.5.0
isSymbol(Symbol.iterator)// => trueisSymbol('abc')// => false Copy
isSymbol(Symbol.iterator)// => trueisSymbol('abc')// => false
Checks if
value
is classified as aSymbol
primitive or object.