Initial commit
This commit is contained in:
36
node_modules/reduce-flatten/README.md
generated
vendored
Normal file
36
node_modules/reduce-flatten/README.md
generated
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
[](https://www.npmjs.org/package/reduce-flatten)
|
||||
[](https://www.npmjs.org/package/reduce-flatten)
|
||||
[](https://travis-ci.org/75lb/reduce-flatten)
|
||||
[](https://david-dm.org/75lb/reduce-flatten)
|
||||
[](https://github.com/feross/standard)
|
||||
|
||||
<a name="module_reduce-flatten"></a>
|
||||
## reduce-flatten
|
||||
Flatten an array into the supplied array.
|
||||
|
||||
|
||||
**Example**
|
||||
```js
|
||||
var flatten = require('reduce-flatten')
|
||||
```
|
||||
|
||||
|
||||
<a name="exp_module_reduce-flatten--flatten"></a>
|
||||
### flatten() ⏏
|
||||
**Kind**: Exported function
|
||||
|
||||
|
||||
|
||||
**Example**
|
||||
```js
|
||||
> numbers = [ 1, 2, [ 3, 4 ], 5 ]
|
||||
> numbers.reduce(flatten, [])
|
||||
[ 1, 2, 3, 4, 5 ]
|
||||
```
|
||||
|
||||
|
||||
|
||||
|
||||
* * *
|
||||
|
||||
© 2016 Lloyd Brookes <75pound@gmail.com>. Documented by [jsdoc-to-markdown](https://github.com/jsdoc2md/jsdoc-to-markdown).
|
||||
Reference in New Issue
Block a user