"use strict";
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
const isSymbol = require("./isSymbol.cjs");
function baseExtremum(array, iteratee, comparator) {
  var index = -1, length = array.length;
  while (++index < length) {
    var value = array[index], current = iteratee(value);
    if (current != null && (computed === void 0 ? current === current && !isSymbol.default(current) : comparator(current, computed))) {
      var computed = current, result = value;
    }
  }
  return result;
}
exports.default = baseExtremum;
//# sourceMappingURL=_baseExtremum.cjs.map
