# flatten-list

Flatten an array or array-like objects.

Reduces nested arrays or array-like objects (like `arguments` or `NodeList` in
the browser) to a single array.

## Example

```js
var flatten = require('flatten-list');

flatten([1, [2, 3]]); // [1, 2, 3]
flatten([1, 2, 3]); // [1, 2, 3]
flatten(1); // [1]

function test() {
    return flatten(arguments);
}

test(1, [2, 3]); // [1, 2, 3];
```
# flatten-list

[![Build Status](https://travis-ci.org/conradz/flatten-list.png)](https://travis-ci.org/conradz/flatten-list)
[![Dependency Status](https://gemnasium.com/conradz/flatten-list.png)](https://gemnasium.com/conradz/flatten-list)

Flatten an array or array-like objects.

Reduces nested arrays or array-like objects (like `arguments` or `NodeList` in
the browser) to a single array.

## Example

```js
var flatten = require('flatten-list');

flatten([1, [2, 3]]); // [1, 2, 3]
flatten([1, 2, 3]); // [1, 2, 3]
flatten(1); // [1]

function test() {
    return flatten(arguments);
}

test(1, [2, 3]); // [1, 2, 3];
```
Add build and dependency badges
Add build and dependency badges
