Documentation
    Preparing search index...

    Function replaceObjectValues

    • 替换对象中的值

      • 支持基本类型 & 对象 & 数组
      • deep 模式下支持递归替换,但不会替换数组成员

      常见使用场景:部分编辑页中的保存接口,需要替换 undefined 为 空字符串,以达到清空字段的效果

      Type Parameters

      • T extends Record<string | number, any>

      Parameters

      Returns T