Skip to content

Instantly share code, notes, and snippets.

@RANUX
Created December 6, 2016 12:36
Show Gist options
  • Save RANUX/de19cff4110f8c82005a3bee77112552 to your computer and use it in GitHub Desktop.
Save RANUX/de19cff4110f8c82005a3bee77112552 to your computer and use it in GitHub Desktop.
Javascript - convert array with char codes to string
var arrayToAscii = function (arr) {
var res = [];
for (var i = 0; i < arr.length; i++) {
res.push(String.fromCharCode(arr[i]));
}
return res.join("");
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment