mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 18:32:23 +00:00
| .. | ||
| .travis.yml | ||
| index.js | ||
| LICENSE | ||
| package.json | ||
| README.hbs | ||
| README.md | ||
| test.js | ||
reduce-flatten
Flatten an array into the supplied array.
Example
const flatten = require('reduce-flatten')
flatten() ⏏
Kind: Exported function
Example
> 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.