Flattens nested arrays.
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
.npmignore
.travis.yml
README.md
index.js
package.json
test.js

README.md

flatten-array

flattens nested arrays.

Install

$ npm install azer/flatten-array

Usage

var flatten = require('flatten-array')

flatten([1, 2, [3, [4, 5], 6], 7])
// => [1, 2, 3, 4, 5, 6, 7]