TextEncoderStream: writable property
Baseline
Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since September 2022.
Note: This feature is available in Web Workers.
The writable read-only property of the TextEncoderStream interface returns a WritableStream.
Value
Examples
The following example demonstrates how to return a WritableStream from a TextEncoderStream object.
js
const stream = new TextEncoderStream();
console.log(stream.writable); // A WritableStream
Specifications
| Specification |
|---|
| Streams> # dom-generictransformstream-writable> |
Browser compatibility
Loading…