We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Reverse the values!
Alternatives: reverse, reverse$. Similar: repeat, cycle, rotate, reverse.
function reverse$(x) // x: an array (updated!)
const xarray = require('extra-array'); var x = [1, 2, 3, 4]; xarray.reverse$(x); // → [ 4, 3, 2, 1 ] x; // → [ 4, 3, 2, 1 ]