-
-
Save ccac/23f07d64d302741340f8194cc9613897 to your computer and use it in GitHub Desktop.
Convert bytes to string Javascript
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 bin2string(array){ | |
| var result = ""; | |
| for(var i = 0; i < array.length; ++i){ | |
| result+= (String.fromCharCode(array[i])); | |
| } | |
| return result; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment