Function: flat()
flat<
T>(depth, …sources):Sequence<T>
Same semantics as Array.prototype.flat (arrays only). depth leads so the
sources can stay variadic; use depth < 1 for a no-op passthrough.
Type Parameters
Section titled “Type Parameters”T
Parameters
Section titled “Parameters”number
How many array levels to flatten.
sources
Section titled “sources”…readonly Source<T>[]
Containers to concatenate, then flatten (nullish skipped).
Returns
Section titled “Returns”Sequence<T>