It implements the logic consistent with JavaScript's native spread operator, whereby it expands
elements on the top level only, and it will throw an error when passed in a non-iterable value.
If you want values expanded recursively, and without throwing errors, see operator flat.
Type Parameters
T extends Iterable<unknown> | AsyncIterable<unknown>
Spreads / expands iterable values.
The source is expected to emit iterable values only, or else it will throw an error.
It implements the logic consistent with JavaScript's native spread operator, whereby it expands elements on the top level only, and it will throw an error when passed in a non-iterable value.
If you want values expanded recursively, and without throwing errors, see operator flat.