codetrix - v1.5.0
    Preparing search index...

    Function deepClone

    • Creates a deep clone of a value (supports arrays and objects).

      Type Parameters

      • T

      Parameters

      • value: T

        The value to clone.

      Returns T

      A deep cloned copy of the input value.

      const original = { a: 1, b: { c: 2 } };
      const clone = deepClone(original);