reverse the elements of array in "typescript" code example Example: ts reverse array array.reverse();