typeof "symbol" alias.
typeof
isSymbol(Symbol("Vangware")); // trueisSymbol(Symbol.iterator); // trueisSymbol("Vangware"); // false
Returns true if value is a symbol, false otherwise.
true
symbol
false
Value to check.
typeof
"symbol" alias.Example
Returns
Returns
true
if value is asymbol
,false
otherwise.