Skip to content

Commit

Permalink
Add description, installation and usage information to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
falinsky committed Oct 22, 2018
1 parent 2bdfaf9 commit 515b3aa
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,17 @@
# flatten
# flatten

Flatten provided data (including nested arrays) into a flat array.


## Installation

`npm i @falinsky/flatten`


## Usage

```javascript
const flatten = require('@falinsky/flatten');

console.log(flatten([1, [2, 3], [4, [5]]])); // outputs [1, 2, 3, 4, 5]
```

0 comments on commit 515b3aa

Please sign in to comment.