spaceout/front_end/node_modules/reduce-flatten
2020-12-12 10:25:30 -05:00
..
.travis.yml Added Django and React Template 2020-12-12 10:25:30 -05:00
index.js Added Django and React Template 2020-12-12 10:25:30 -05:00
LICENSE Added Django and React Template 2020-12-12 10:25:30 -05:00
package.json Added Django and React Template 2020-12-12 10:25:30 -05:00
README.hbs Added Django and React Template 2020-12-12 10:25:30 -05:00
README.md Added Django and React Template 2020-12-12 10:25:30 -05:00
test.js Added Django and React Template 2020-12-12 10:25:30 -05:00

view on npm npm module downloads Build Status Dependency Status js-standard-style

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.