TextEncoderStream: writable property

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

stream = new TextEncoderStream();
console.log(stream.writable); // A WritableStream

Specifications

Specification
Streams Standard
# dom-generictransformstream-writable

Browser compatibility

BCD tables only load in the browser