• Helper for making deep-clones, works for objects and arrays, ideally with non-class data

    Type Parameters

    Parameters

    • obj: T

      object to be cloned

    Returns T

    the cloned object