Skip to content

Instantly share code, notes, and snippets.

@giltayar
Last active January 24, 2017 07:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save giltayar/5b2b92d0c57d9c31f7ddc1c1a42a6a95 to your computer and use it in GitHub Desktop.
Save giltayar/5b2b92d0c57d9c31f7ddc1c1a42a6a95 to your computer and use it in GitHub Desktop.
Unicode String Iteration Article Sample Code
function stringToArray(s) {
const retVal = [];
for (let i = 0; i < s.length; ++i) {
retVal.push(s[i]);
}
return retVal;
}
console.log(stringToArray('Robin Hood'));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment