Tiny (139B) & fast utility to recursively flatten an array of arrays!
$ npm install --save @arr/flatten
import flatten from '@arr/flatten';
flatten(['a', ['b', ['c']], 'd', ['e', [['f']]]]);
//=> ['a', 'b', 'c', 'd', 'e', 'f']
Type: Array
The array to iterate upon.
MIT © Luke Edwards