https://github.com/ruanyl/array-inverse
https://github.com/ruanyl/array-inverse
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ruanyl/array-inverse
- Owner: ruanyl
- License: mit
- Created: 2015-09-18T19:50:51.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-09-19T07:58:07.000Z (almost 10 years ago)
- Last Synced: 2025-03-16T14:18:19.978Z (4 months ago)
- Language: JavaScript
- Size: 121 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
array-inverse
========
[](http://travis-ci.org/ruanyl/array-inverse)
[](http://badge.fury.io/js/array-inverse)inverse an array
## Installation
This module is installed via npm:
``` bash
$ npm install array-inverse
```## Example Usage
``` js
var arrayInverse = require('array-inverse');var arr = [
[1, 2, 3],
[1, 1, 1]
];// return [[1, 1], [2, 1], [3, 1]];
arrayInverse(arr);
```