title: Merge these 2 arrays
body: <p>I have an array I start out with:</p>
  
  <pre><code>var array1 = [{"key":{"id":1,"kind":"Table","path":["Table",1]},"data":{"txt":"some txt","modified":1461294950,"cat1":"a1","permission":"n"}},
  {"key":{"id":2,"kind":"Table","path":["Table",2]},"data":{"txt":"some txt","modified":1461294953,"cat1":"a1","permission":"n"}},
  {"key":{"id":3,"kind":"Table","path":["Table",3]},"data":{"txt":"some txt","modified":1461294954,"cat1":"a1","permission":"n"}},
  {"key":{"id":4,"kind":"Table","path":["Table",4]},"data":{"txt":"some txt","modified":1461294954,"cat1":"a1","permission":"n"}},
  {"key":{"id":5,"kind":"Table","path":["Table",5]},"data":{"txt":"some txt","modified":1461294954,"cat1":"a1","permission":"n"}}];
  </code></pre>
  
  <p>This array has 5 elements. I then from my server get 5 more results. I would like to append this new array to the existing.</p>
  
  <p>So I receive this from my server:</p>
  
  <pre><code>var server_response = [{"key":{"id":6,"kind":"Table","path":["Table",6]},"data":{"txt":"some txt","modified":1461294954,"cat1":"a1","permission":"n"}},
  {"key":{"id":7,"kind":"Table","path":["Table",7]},"data":{"txt":"some txt","modified":1461294954,"cat1":"a1","permission":"n"}},
  {"key":{"id":8,"kind":"Table","path":["Table",8]},"data":{"txt":"some txt","modified":1461294954,"cat1":"a1","permission":"n"}},
  {"key":{"id":9,"kind":"Table","path":["Table",9]},"data":{"txt":"some txt","modified":1461294955,"cat1":"a1","permission":"n"}},
  {"key":{"id":10,"kind":"Table","path":["Table",10]},"data":{"txt":"some txt","modified":1461294955,"cat1":"a1","permission":"n"}}];
  </code></pre>
  
  <p>So to merge them I go:</p>
  
  <pre><code>console.log(array1.push(server_response);
  </code></pre>
  
  <p>But I get the following result:</p>
  
  <blockquote>
    <p>[{"key":{"id":1,"kind":"Table","path":["Table",1]},"data":{"txt":"some
    txt","modified":1461294950,"cat1":"a1","permission":"n"}},{"key":{"id":2,"kind":"Table","path":["Table",2]},"data":{"txt":"some
    txt","modified":1461294953,"cat1":"a1","permission":"n"}},{"key":{"id":3,"kind":"Table","path":["Table",3]},"data":{"txt":"some
    txt","modified":1461294954,"cat1":"a1","permission":"n"}},{"key":{"id":4,"kind":"Table","path":["Table",4]},"data":{"txt":"some
    txt","modified":1461294954,"cat1":"a1","permission":"n"}},{"key":{"id":5,"kind":"Table","path":["Table",5]},"data":{"txt":"some
    txt","modified":1461294954,"cat1":"a1","permission":"n"}},<strong>[{"key":{"id":6,"kind":"Table","path":["Table",6]},"data":{"txt":"some
    txt","modified":1461294954,"cat1":"a1","permission":"n"}},{"key":{"id":7,"kind":"Table","path":["Table",7]},"data":{"txt":"some
    txt","modified":1461294954,"cat1":"a1","permission":"n"}},{"key":{"id":8,"kind":"Table","path":["Table",8]},"data":{"txt":"some
    txt","modified":1461294954,"cat1":"a1","permission":"n"}},{"key":{"id":9,"kind":"Table","path":["Table",9]},"data":{"txt":"some
    txt","modified":1461294955,"cat1":"a1","permission":"n"}},{"key":{"id":10,"kind":"Table","path":["Table",10]},"data":{"txt":"some
    txt","modified":1461294955,"cat1":"a1","permission":"n"}}]</strong>]</p>
  </blockquote>
  
  <p>As you can see it adds the second array as an actual array to the first array. I just want the content of the server response to be added (essentially so there should be no square brackets). I know I could do this using regex, but this does not seem like a good solution. How can I merge these arrays?</p>