0.1.1 • Published 3 years ago
@annexe/array.reverse v0.1.1
@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]
0.1.1
3 years ago