TextEncoderStream: readable 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 readable read-only property of the TextEncoderStream interface returns a ReadableStream.
Value
Examples
The following example demonstrates how to return a ReadableStream from a TextEncoderStream object.
js
const stream = new TextEncoderStream();
console.log(stream.readable); // A ReadableStream
Specifications
| Specification |
|---|
| Streams> # dom-generictransformstream-readable> |
Browser compatibility
Loading…