Wygeneruj tablicę wszystkich kluczy obiektowych za pomocą Object.keys ()

let users = {
  Alan: {
    age: 27,
    online: false
  },
  Jeff: {
    age: 32,
    online: true
  },
  Sarah: {
    age: 48,
    online: false
  },
  Ryan: {
    age: 19,
    online: true
  }
};

function getArrayOfUsers(obj) {
  // Only change code below this line
  return Object.keys(obj)
  // Only change code above this line
}

console.log(getArrayOfUsers(users));

// Answer: [ 'Alan', 'Jeff', 'Sarah', 'Ryan' ]
Ralph Dizon