I have this function:
function ungarble(garble){
var s = "";
for( var i = 0; i < garble.length; i++ ) {
s += String.fromCharCode(garble[i]);
}
return s;
}
It takes in an array of charCodes, then returns a string those charCodes represented.
Does native Javascript have a function that does this?
Note: This is for reading messages returned by child_process.spawn.
String.fromCharCode(...garble)