1.0.0 • Published 11 years ago

utils-flatten v1.0.0

Weekly downloads
9,075
License
-
Repository
github
Last release
11 years ago

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/)