tree:

forEach(tree, fn)

Calls the fn once for each key-value pair present in the specific node of the tree. For each pair, the function will be passed value and key parameters.