Beta
Converts an ArrayBuffer or ArrayBufferView to a string. Similar to TextDecoder.decode but with a fallback for environments that don't support TextDecoder.
TextDecoder.decode
TextDecoder
The data to decode.
The options for the decoding.
The string representation of the ArrayBuffer.
{@includeCode ../test/decodeText.test.ts#example} Copy
{@includeCode ../test/decodeText.test.ts#example}
Converts an ArrayBuffer or ArrayBufferView to a string. Similar to
TextDecoder.decodebut with a fallback for environments that don't supportTextDecoder.