Returns an array of key-values of the enumerable properties of an object.
entries(object)
object
Object that contains the properties and methods.
An array of key-value pairs in the format [[key1, value1], [key2, value2], ...]].
Object.entries({cheese: "like", milk: "dislike"})
[["cheese", "like"], ["milk", "dislike"]]
Object.entries({})
[]