This method is like _.flatMap except that it recursively flattens the mapped results.
_.flatMap
The collection to iterate over.
Returns the new flattened array.
4.7.0
function duplicate(n) { return [[[n, n]]];}_.flatMapDeep([1, 2], duplicate);// => [1, 1, 2, 2] Copy
function duplicate(n) { return [[[n, n]]];}_.flatMapDeep([1, 2], duplicate);// => [1, 1, 2, 2]
_.flatMapDeep
This method is like
_.flatMap
except that it recursively flattens the mapped results.