Socket
Book a DemoInstallSign in
Socket

@arr/reverse

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@arr/reverse

A tiny, faster alternative to native Array.prototype.reverse

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

@arr/reverse

A tiny, faster alternative to native Array.prototype.reverse

Install

$ npm install --save @arr/reverse

Usage

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']

API

reverse(arr)

arr

Type: Array
The array to iterate upon.

License

MIT © Luke Edwards

Keywords

arr

FAQs

Package last updated on 23 Oct 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts