"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.checkIsFilledValue = void 0;
function checkIsFilledValue(value) {
    if (value === null || value === undefined) {
        return false;
    }
    if (typeof value === 'string') {
        return value.trim() !== '';
    }
    if (Array.isArray(value)) {
        return Boolean(value?.length);
    }
    if (typeof value === 'object') {
        return Object.values(value).some((v) => checkIsFilledValue(v));
    }
    if (typeof value === 'number') {
        return Number.isFinite(value);
    }
    return Boolean(value);
}
exports.checkIsFilledValue = checkIsFilledValue;
