Get all keys/values from an object

PHOTO EMBED

Wed Jun 28 2023 00:06:11 GMT+0000 (Coordinated Universal Time)

Saved by @gbritgs #javascript

const obj = {
  name: 'Test',
  age: '99'
};

console.log(Object.keys(obj));
//console: ["name", "age"]

console.log(Object.values(obj));
//console: ["Test", "99"]
content_copyCOPY