I'm trying to access a value in the array by passing in the key, but it returns undefined.
const names = {
aegon: 'targaryen',
arya: 'stark',
cersei: 'lannister'
}
let keys = Object.keys(names);
console.log(keys['aegon'])