Documentation
    Preparing search index...

    Function decodeText

    • Beta

      Converts an ArrayBuffer or ArrayBufferView to a string. Similar to TextDecoder.decode but with a fallback for environments that don't support TextDecoder.

      Parameters

      • data: ArrayBuffer | ArrayBufferView<ArrayBuffer>

        The data to decode.

      • options: DecodeTextOptions = {}

        The options for the decoding.

      Returns string

      The string representation of the ArrayBuffer.

      {@includeCode ../test/decodeText.test.ts#example}