tree:

entries(tree)

Returns a new Iterator object that contains a two-member array of [key, value] for each element in the specific node of the tree. This is consistent with the numerous entries() methods in JavaScript, such as Object.entries().