Reverse a String, Number, or Array.
Syntax
Parameters
subject
- The entity to reverse.false
(default) - The keys in the Array returned will be re-assigned from 0
.true
- The original keys will be retained.
Result
subject
.
Returns subject
with its elements in reverse order.