utils-flatten

flatten() utility function

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
utils-flatten
1.0.09 years ago9 years agoMinified + gzip package size for utils-flatten in KB

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
Build Status

Credits

- Jared Hanson

License

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