@exodus/bytes
    Preparing search index...
    • Decode UTF-8 bytes to a string (strict mode)

      Throws on invalid UTF-8 byte sequences

      This is similar to new TextDecoder('utf-8', { fatal: true, ignoreBOM: true }).decode(arr), but works on all engines.

      Parameters

      • arr: Uint8Array

        The bytes to decode

      Returns string

      The decoded string