Function: take()
take<
T>(count, …sources):Sequence<T>
Yields at most count elements from the front of the concatenated sources.
count leads so the sources can stay variadic.
Type Parameters
Section titled “Type Parameters”T
Parameters
Section titled “Parameters”number
Maximum number of elements to yield (<= 0 yields none).
sources
Section titled “sources”…readonly Source<T>[]
Containers to concatenate (nullish sources are skipped).
Returns
Section titled “Returns”Sequence<T>