Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ruanyl/array-inverse
https://github.com/ruanyl/array-inverse
Last synced: 18 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/ruanyl/array-inverse
- Owner: ruanyl
- License: mit
- Created: 2015-09-18T19:50:51.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-09-19T07:58:07.000Z (over 9 years ago)
- Last Synced: 2024-11-05T14:55:46.156Z (2 months ago)
- Language: JavaScript
- Size: 121 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
array-inverse
========
[![build status](https://secure.travis-ci.org/ruanyl/array-inverse.svg)](http://travis-ci.org/ruanyl/array-inverse)
[![NPM version](https://badge.fury.io/js/array-inverse.svg)](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);
```