Tree.

traverseOrThrow(tree, ...keys)

Traverses a map-based tree using the corresponding path of keys and returns the final value. Throws if any interior step of the path doesn’t lead to a result.