Your IP : 216.73.216.74


Current Path : /usr/local/lib/node_modules/@google/gemini-cli/node_modules/es-toolkit/dist/compat/math/
Upload File :
Current File : //usr/local/lib/node_modules/@google/gemini-cli/node_modules/es-toolkit/dist/compat/math/min.js

'use strict';

Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });

function min(items) {
    if (!items || items.length === 0) {
        return undefined;
    }
    let minResult = undefined;
    for (let i = 0; i < items.length; i++) {
        const current = items[i];
        if (current == null || Number.isNaN(current) || typeof current === 'symbol') {
            continue;
        }
        if (minResult === undefined || current < minResult) {
            minResult = current;
        }
    }
    return minResult;
}

exports.min = min;