Created
December 6, 2016 12:36
-
-
Save RANUX/de19cff4110f8c82005a3bee77112552 to your computer and use it in GitHub Desktop.
Javascript - convert array with char codes 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
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