Open this example in the interactive library
Source code
const key = Symbol("version");
console.log(Reflect.ownKeys({ title: "Notes", [key]: 2 }));
Sample output
[ 'title', Symbol(version) ]

Open this example in the interactive library
const key = Symbol("version");
console.log(Reflect.ownKeys({ title: "Notes", [key]: 2 }));
[ 'title', Symbol(version) ]