utils-flatten

flatten() utility function

npm install utils-flatten
35 downloads in the last day
237 downloads in the last week
1 222 downloads in the last month

utils-flatten

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

Build Status

Credits

License

The MIT License

Copyright (c) 2013 Jared Hanson [http://jaredhanson.net/](http://jaredhanson.net/)

npm loves you