Skip to content

Latest commit

 

History

History
36 lines (23 loc) · 1.08 KB

File metadata and controls

36 lines (23 loc) · 1.08 KB

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

reduce-flatten

Flatten an array into the supplied array.

Example

var flatten = require('reduce-flatten')

flatten() ⏏

Kind: Exported function

Example

> numbers = [ 1, 2, [ 3, 4 ], 5 ]
> numbers.reduce(flatten, [])
[ 1, 2, 3, 4, 5 ]

© 2016 Lloyd Brookes [email protected]. Documented by jsdoc-to-markdown.