forEach(callback) {
    return this.forEach_(this.getAll(), callback);
  }
Calls a callback function with each value in the tree.
If the callback returns a truthy value, this value is returned without
checking the rest of the tree.
@param {function(T): R} callback Callback.
@return {R|undefined} Callback return value.
@template R