How can I check if a value is Symbol in JS?
I do not see a Symbol.isSymbol(x) method. My test of (x instanceof Symbol) does not seem to work either.
Symbol.isSymbol(x)
(x instanceof Symbol)
Check it with typeof:
typeof x === 'symbol'