TextEncoderStream.writable

The writable read-only property of the TextEncoderStream interface returns a WritableStream.

Syntax

var writable = TextEncoderStream.writable;

Value

A WritableStream.

Examples

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

stream = new TextEncoderStream();
console.log(stream.writeable); //a WritableStream

Specifications

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

Browser compatibility

BCD tables only load in the browser