Checks if a given value is of type symbol.
symbol
isObject(Symbol('message'))// => trueisSymbol(Symbol(10))// => trueisSymbol({})// => false Copy
isObject(Symbol('message'))// => trueisSymbol(Symbol(10))// => trueisSymbol({})// => false
The expected symbol type.
The value to be checked.
true if the given value is of type symbol, false otherwise.
true
false
Generated using TypeDoc v0.24.7
Checks if a given value is of type
symbol
.Example