Returns an array of [key, value] pairs from the given object.
[key, value]
The object to extract entries from.
An array of key-value pairs from the object.
const obj = { a: 1, b: 2 };const result = entries(obj);console.log(result); // [['a', 1], ['b', 2]] Copy
const obj = { a: 1, b: 2 };const result = entries(obj);console.log(result); // [['a', 1], ['b', 2]]
1.1.0
Returns an array of
[key, value]
pairs from the given object.