Create a new instance of TextDecoder with specified encoding (optional, defaults to utf-8 if not provided).
Optional
encoding: stringDecodes a Uint8Array as a string. utf8 by default.
Returns the name of this object's type.
Returns true if the object matches or derives from the passed in type.
Returns true if this object is the same as other
. Useful for checking if two references point to the same thing.
Contains methods for Text decoding
Example
js var decoder = new TextDecoder() let decodedStr = decoder.decode([226,136,190,32,69,226,139,133,100,97]) print("decodedString="+decodedStr)