flatten() utility function
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
support/mk
test
.gitignore
.jshintrc
.npmignore
.travis.yml
LICENSE
Makefile
README.md
index.js
package.json

README.md

utils-flatten

Build Coverage Dependencies

Flattens an array.

Install

$ npm install utils-flatten

Usage

var arr = ['one', ['two', ['three', 'four'], 'five']];

flatten(arr);
// => ['one', 'two', 'three', 'four', 'five']

Tests

$ npm install
$ npm test

Credits

License

The MIT License

Copyright (c) 2013 Jared Hanson <http://jaredhanson.net/>