TextEncoderStream.readable

The readable read-only property of the TextEncoderStream interface returns a ReadableStream.

Syntax

var readable = TextEncoderStream.readable;

Value

A ReadableStream.

Examples

The following example demonstrates how to return a ReadableStream from a TextEncoderStream object.

stream = new TextEncoderStream();
console.log(stream.readable); //a ReadableStream

Specifications

Specification
Streams Standard (Streams)
# dom-generictransformstream-readable

Browser compatibility

BCD tables only load in the browser