Skip to content

reverse$

Subhajit Sahu edited this page May 19, 2020 · 16 revisions

Reverses the values. 🏃 📼 📦 🌔

Alternatives: [reverse], [reverse$].

array.reverse(x);
// x: an array
// --> reversed
const array = require('extra-array');

var x = [1, 2, 3, 4];
array.reverse$(x);
// [ 4, 3, 2, 1 ]

x;
// [ 4, 3, 2, 1 ]

references

Clone this wiki locally