Created
November 27, 2014 08:45
-
-
Save zlargon/177484546bd23b2fd55a to your computer and use it in GitHub Desktop.
convert byte (integer) array to string
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function byteArrayToString(arr) { | |
var s = ""; | |
arr.forEach(function(i) { | |
s += String.fromCharCode(i); | |
}); | |
return s; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment