Package Exports
- @arr/reverse
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@arr/reverse) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@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