Reputation: 101
0:"Both"
1:"Prepaid"
2:"Recoverable"
How to reverse the above array in typescript?
Upvotes: 10
Views: 9069
Reputation: 747
As stated here:
yourArray.reverse() // will return reversed array
It is JS, but the method must be also in TS
Upvotes: 15