Skip to main content
Module

x/polkadot/x-textdecoder/fallback.ts

Package publishing for deno.land/x/polkadot
Go to Latest
File

export class TextDecoder { // eslint-disable-next-line no-useless-constructor constructor (_?: 'utf-8' | 'utf8') { // nothing }
decode (value: Uint8Array): string { let result = '';
for (let i = 0; i < value.length; i++) { result += String.fromCharCode(value[i]); }
return result; }}