How to convert an array of character codes to string in JavaScript?
<p>I have this function:</p>

<pre><code>function ungarble(garble){
  var s = "";
  for( var i = 0; i &lt; garble.length; i++ ) {
    s += String.fromCharCode(garble[i]);
  }
  return s;
}
</code></pre>

<p>It takes in an array of charCodes, then returns a string those charCodes represented.</p>

<p>Does native Javascript have a function that does this?</p>

<p>Note: This is for reading messages returned by <code>child_process.spawn</code>.</p>