Checks if a value is of type symbol
value
symbol
const result = isSymbol(Symbol());console.log(result); // true
const result = isSymbol(0);console.log(result); // false
true if value is symbol, otherwise false
true
false
the value to check
Generated using TypeDoc
Checks if a
valueis of typesymbolExample
Example
Returns
trueifvalueissymbol, otherwisefalse