Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@extra-array/reverse-update

nodef34MIT2.10.19TypeScript support: included

Reverses the array.

extra, array, reverse, update, reverse$

readme

Reverses the array. :package: :smiley_cat: :running: :vhs: :moon: :scroll: :newspaper: :blue_book:

Alternatives: reverse, reverse$.
Similar: repeat, cycle, rotate, reverse.

This is part of package extra-array.


array.reverse$(x);
// x: an array (updated)
// → x
const array = require("extra-array");

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

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


References