-
-
Notifications
You must be signed in to change notification settings - Fork 0
writable stream
Nicholas Berlette edited this page Jun 19, 2025
·
1 revision
function isWritableStream<W>(it: unknown): it is WritableStream<W>;
Checks if it is a WritableStream
object.
Name | Info |
---|---|
it |
The value to check. |
true
if the value is a WritableStream
, false
otherwise.
Streams
import { isWritableStream } from "jsr:@nick/is/writable-stream";
a;
const stream = new WritableStream();
isWritableStream(stream); // true
const stream2 = new TransformStream();
isWritableStream(stream2); // false
const stream3 = new ReadableStream();
isWritableStream(stream3); // false