Licence
MIT
Version
0.1.1
Deps
0
Size
3 kB
Vulns
0
Weekly
0
@annexe/reverse
An immutable function that reverses the order of items in an array.
Installation
To install @annexe/reverse:
Yarn
yarn add @annexe/reverse
NPM
npm install @annexe/reverse
Usage
import { reverse } from '@annexe/reverse';
const myArray = [1, 2, 3, 4, 5];
console.log(reverse(myArray)); // prints [5, 4, 3, 2, 1]