Recursively maps each element in an array using a provided iteratee function and then deeply flattens the resulting array.
The type of elements within the array.
The type of elements within the returned array from the iteratee function.
The array to flatten.
The function that produces the new array elements.
A new array that has been flattened.
const result = flatMapDeep([1, 2, 3], n => [[n, n]]);// [1, 1, 2, 2, 3, 3] Copy
const result = flatMapDeep([1, 2, 3], n => [[n, n]]);// [1, 1, 2, 2, 3, 3]
Alias