utils-flatten
v1.0.0
Published
flatten() utility function
Downloads
136,508
Readme
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
Credits
License
Copyright (c) 2013 Jared Hanson <http://jaredhanson.net/>