A tiny, faster alternative to native
Array.prototype.reverse
$ npm install --save @arr/reverse
import reverse from '@arr/reverse';
let a = ['one', 'two', 'three'];
let reversed = reverse(a);
console.log(a);
//=> ['three', 'two', 'one']
console.log(reversed);
//=> ['three', 'two', 'one']
Type: Array
The array to iterate upon.
MIT © Luke Edwards