Function clone

  • Clone a data.

    Clones an instance following type T. If the target input value or its member variable contains a class instance having methods, those methods would not be cloned.

    For reference, this typia.misc.clone() function does not validate the input value type. It just believes that the input value is following the type T. Therefore, if you can't ensure the input value type, it would be better to call assertClone function instead.

    Type Parameters

    • T

      Type of the input value

    Parameters

    • input: T

      A value to be cloned

    Returns Resolved<T>

    Cloned data

    Jeongho Nam - https://github.com/samchon