How do I return the key name rather than the value?

anyone know how to return a property name of an object rather than the value

function getAlbumProperties (obj)
  return obj.a



getAlbumProperties({a: 'foo', b: 'car', c: 'bar'} )

E.g. {a: ‘foo’, b: ‘car’, c: ‘bar’} should return [‘a’, ‘b’, ‘c’]

Object.keys(obj) This returns keys that belong to obj as an array.

cool and
Object.values(obj) works too thanks