- Instant help with your JavaScript coding problems
Object.entries(obj)
entries(o: { [s: string]: T } | ArrayLike): [string, T][];
const obj = { foo: 'bar', baz: 42 };
console.log(Object.entries(obj)); // [ ['foo', 'bar'], ['baz', 42] ]