flatten-arr
v0.1.1
Published
Flattens a nested array recursively for Node.js and browsers.
Downloads
23
Maintainers
Readme
flatten-arr
Flattens a nested array recursively for Node.js and browsers.
npm install flatten-arr --save
You can also use Duo, Bower or download the files manually.
npm stats
API Example
var flatten = require('flatten-arr')
flatten([1, [[[2, [[3, 4]], 5], 6]], [7], [[[8]]], 9])
//=> [1, 2, 3, 4, 5, 6, 7, 8, 9]
API
flatten(list)
arguments
list (array)
Nested array.
returns
(array)
Flattened array.
Inspriation
Contributing
SEE: contributing.md