JavaScript Tutorial ✦
Object Methods
Built-in methods for object manipulation and inspection.
const obj = { a: 1, b: 2 };
Object.keys(obj); // ['a', 'b']
Object.values(obj); // [1, 2]
Built-in methods for object manipulation and inspection.
const obj = { a: 1, b: 2 };
Object.keys(obj); // ['a', 'b']
Object.values(obj); // [1, 2]