ReadonlyencodingA string containing the name of the decoder, that is a string describing the method the TextDecoder will use.
ReadonlyfatalA Boolean indicating whether the error mode is fatal.
ReadonlyignoreA Boolean indicating whether the byte order mark is ignored.
Returns a string containing the text decoded with the method of the specific TextDecoder object.
If the error mode is "fatal" and the encoder method encounter an error it WILL THROW a TypeError.
Optionalinput: ArrayBuffer | ArrayBufferView<ArrayBufferLike>Buffer containing the text to decode
Optionaloptions: TextDecodeOptionsObject defining the decode options
The TextDecoder interface represents a decoder for a specific text encoding. It takes a stream of bytes as input and emits a stream of code points.
Since
1.69.2