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

    Parameters

    • aList: List<any>

      the list to consider

    Returns any[]

    an array containing the same elements