"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.min = void 0;
const reduce_js_1 = require("./reduce.js");
const Observable_js_1 = require("../Observable.js");
function min(comparer) {
    return (0, reduce_js_1.reduce)((0, Observable_js_1.isFunction)(comparer) ? (x, y) => (comparer(x, y) < 0 ? x : y) : (x, y) => (x < y ? x : y));
}
exports.min = min;