@pengzhanbo/utils - v3.7.3
    Preparing search index...

    Function deepClone

    • Deep Clone.

      深度克隆

      Type Parameters

      • T = any

        The type of elements in the array / 数组元素的类型

      Parameters

      • source: T

        The source data to clone. 要克隆的源数据

      Returns T

      The deeply cloned data. 深度克隆后的数据

      This function uses an internal Map to handle circular references safely, preventing infinite recursion during deep cloning.

      此函数使用内部的 Map 来安全处理循环引用,防止深度克隆过程中的无限递归。