rOACCT/node_modules/reduce-flatten66f34df107aapaginated-inlines
rOACCT/node_modules/reduce-flatten
66f34df107aapaginated-inlines
README.md
README.md
![view on npm](https://www.npmjs.org/package/reduce-flatten) ![npm module downloads](https://www.npmjs.org/package/reduce-flatten) ![Build Status](https://travis-ci.org/75lb/reduce-flatten) ![Dependency Status](https://david-dm.org/75lb/reduce-flatten) ![js-standard-style](https://github.com/feross/standard)
<a name="module_reduce-flatten"></a>
reduce-flatten
Flatten an array into the supplied array.
Example
js const 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-18 Lloyd Brookes \<75pound@gmail.com\>. Documented by jsdoc-to-markdown.
c4science · Help