• Clone an object by converting to/from JSON.

    Type Parameters

    • T

      The generic type of the values in the array.

    Parameters

    • value: T

      The value to clone.

    Returns T

    The cloned value.