Function shallowClone

  • Shallow clone an object. Returns a new object instance with the same properties as the input instance.

    Type Parameters

    • T

    Parameters

    • obj: T

    Returns T