@epikodelabs/streamix / isStreamLike
Function: isStreamLike()
isStreamLike<
T>(value):value is Stream<T>
Defined in: projects/libraries/streamix/src/lib/abstractions/stream.ts:44
Type guard to check if a value is stream-like (has type and async iterator).
Type Parameters
T
T = unknown
Parameters
value
unknown
The value to check.
Returns
value is Stream<T>
True if the value is a Stream.