Function: concat()
concat<
T>(source, …items):Sequence<T>
Yields source, then each appended item in order (arrays spread one level),
mirroring Array.prototype.concat. items are scalar values/arrays, not
containers, so source stays a single leading argument.
Type Parameters
Section titled “Type Parameters”T
Parameters
Section titled “Parameters”source
Section titled “source”Source<T>
The leading container (nullish yields just the items).
…readonly (T | readonly T[])[]
Values (or arrays of values) appended after the source.
Returns
Section titled “Returns”Sequence<T>