• Transforms an array anArray into a list. The elements appear in the same order in the array and the returned list.

    Parameters

    • anArray: any[]

      the array to consider

    Returns List<any>

    a list containing the same elements