0.1.1 • Published 5 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/reverseNPM
npm install @annexe/reverseUsage
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
5 years ago