Tree.

entries(map)

Returns a new iterator that yields a two-member array of [key, value] for each element in the map-like object. This is consistent with the numerous entries() methods in JavaScript, such as Object.entries().