I need to iterate through an object that has Symbols for keys. The following code returns an empty array.
const FOO = Symbol(\'foo\'); const BAR = Symbol(\'b
Object.values only gets the values of all enumerable named (string-keys) properties.
Object.values
You need to use Object.getOwnPropertySymbols:
console.log(Object.getOwnPropertySymbols(obj).map(s => obj[s]))