const user = { name: 'Alex', age: 30 }; const props = Object.keys(user); console.log(props); // [ 'name', 'age' ]