flattenDeep (Functional Programming) es-toolkit
Creates a function that recursively flattens nested arrays. Use it with pipe.
Info
Prefer the original es-toolkit flattenDeep in ordinary code. Use this fp variant when composing transformations with pipe.
Usage
flattenDeep recursively removes every nested array layer from the piped array. It is lazy-capable inside pipe.
Parameters
This function takes no arguments; call it as flattenDeep().
Returns
A function that maps a nested array to a deeply flattened array.
Source: es-toolkit
Re-exported verbatim from es-toolkit. Implementation, edge cases, and performance behavior are owned upstream. This page mirrors the documentation at the pinned version; the linked source is authoritative.