## Object.entries()
The `Object.entries()` method returns an array of a given object's own enumerable string-keyed property `[key, value]` pairs.
This is the same as iterating with a `for...in` loop, except that a `for...in` loop enumerates properties in the prototype chain as well.
```js
const object1 = {
a: 'somestring',
b: 42,
};
Object.entries(object1); //➞ [ [ 'a', 'somestring' ], [ 'b', 42 ] ]
```
```js
for (const [key, value] of Object.entries(object1)) {
console.log(`${key}: ${value}`);
}
//➞ "a: somestring"
//➞ "b: 42"
```
---
### Syntax
```js
Object.entries(obj)
```
___
#### Parameters
`obj`
The object whose own enumerable string-keyed property `[key, value]` pairs are to be returned.
#### Return value
An array of the given object's own enumerable string-keyed property `[key, value]` pairs.