lib/utils/byte-utils.js
function bytesToString(arr) {
    if (arr instanceof ArrayBuffer) {
        arr = new Uint8Array(arr);
    }
    return textDecoder.decode(arr);
}
function bytesToString(arr) {
    if (arr instanceof ArrayBuffer) {
        arr = new Uint8Array(arr);
    }
    return textDecoder.decode(arr);
}
function bytesToString ( arr ) { if ( arr instanceof ArrayBuffer ) { arr = new Uint8Array ( arr ) ; } return textDecoder . decode ( arr ) ; }
Converts Array or ArrayBuffer to string
@param {Array|Uint8Array|ArrayBuffer} arr
@return {string}
Converts Array or ArrayBuffer to string