This method is like _.flatten except that it recursively flattens array.
_.flatten
array
The array to recursively flatten.
Returns the new flattened array.
_.flattenDeep([1, [2, 3, [4]]]); // => [1, 2, 3, 4]