"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.filterEmptyProps = void 0;
// 工具函数：过滤掉对象中值为空的属性
const filterEmptyProps = (obj) => {
    return Object.entries(obj).reduce((acc, [key, value]) => {
        // 定义空值判断：排除 null、undefined、空字符串
        const isEmpty = value === null || value === undefined || value === "";
        if (!isEmpty) {
            acc[key] = value;
        }
        return acc;
    }, {});
};
exports.filterEmptyProps = filterEmptyProps;
