flatten-arr

0.1.1 • Public • Published

flatten-arr

Flattens a nested array recursively for Node.js and browsers.

Build Status Code Climate js-standard-style

npm install flatten-arr --save

You can also use Duo, Bower or download the files manually.

npm stats

npm NPM downloads David

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

Licenses

GitHub license

Package Sidebar

Install

npm i flatten-arr

Weekly Downloads

2

Version

0.1.1

License

MIT

Last publish

Collaborators

  • wilmoore