• Same as Array.push however clones the array first

    Parameters

    • arr: any[]

      the array

    • o: any

      object to add

    Returns any[]