title: Typed Arrays in Gecko 2: Float32Array concatenation and expansion
body: <p>I'm a bit confused with <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Typed_arrays" rel="nofollow noreferrer">Javascript Typed Arrays</a>.</p>
  <p>What I have are several <em>Float32Array</em> s, that have no <em>concat</em> method. I don't know how many are them in advance, btw.
  I'd like to concatenate them all inside another Float32Array, but:</p>
  <ul>
  <li>as I said before, there is no concatenation method</li>
  <li>if I try to write past the array length, the array is not expanded (aka this won't work - please note that event.frameBuffer and buffer are both Float32Array and that I don't know what the final length of my buffer will be):</li>
  </ul>
  <hr />
  <pre><code>var length_now = buffer.length;
  for (var i = 0; i &lt; event.frameBuffer.length; i += 1) {
        buffer [length_now + i] = event.frameBuffer[i];
  }
  </code></pre>
  <p>The only solution I found is to copy the Float32Array in a regular array, that's definitely not what I want. How would you do, stackoverflowers?</p>