On this pagereverse() reverse<T>(arr): T[] Returns a new array with the order of the elements reversed. Type Parameters • T Parameters arr T[] The array to reverse the order of. Returns T[] Remark pure function Example reverse([1, 2, 3, 4, 5])// [5, 4, 3, 2, 1]