max(transform = identity, compare = compareDefault) {
        ensureIsFunction(transform, "`transform` should be a function");
        ensureIsFunction(compare, "`compare` should be a function");

        return this._findExtremum(