Function: flatMap()
flatMap<
T,U>(source,callback):Sequence<U>
Same semantics as Array.prototype.flatMap, over a single Container.
Type Parameters
Section titled “Type Parameters”T
U
Parameters
Section titled “Parameters”source
Section titled “source”Source<T>
The container to map (nullish yields an empty sequence).
callback
Section titled “callback”(value, index) => U | readonly U[]
Returns a value or array of values, flattened one level.
Returns
Section titled “Returns”Sequence<U>