code: function bytesToString(arr) {
      if (arr instanceof ArrayBuffer) {
          arr = new Uint8Array(arr);
      }
      return textDecoder.decode(arr);
  }
docs: Converts Array or ArrayBuffer to string
  @param {Array|Uint8Array|ArrayBuffer} arr
  @return {string}