Skip to content

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

License

Notifications You must be signed in to change notification settings

wilmoore/flatten-arr.js

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published