• Type Parameters

    • T

    Parameters

    • arr: T[]

      The array to be cloned

    Returns T[]

    a new array with the same elements as the input array