Skip to content

flatMapDeep()

Recursively flattens a nested array and maps the collected values.

Example:

ts
flatMapDeep([1, [2, [3]]], (value) => value * 2); // [2, 4, 6]

Released under the MIT License.