title: merge two object arrays with Angular 2 and TypeScript?
body: <p>I have gone across the JavaScript questions on this topic, this question is specifically about Angular2 with TypeScript.</p>
  
  <p>What I am trying to do is to concatenate the json objects to an array.</p>
  
  <p>My code looks something like this,</p>
  
  <pre><code>public results: [];
  
  
  public getResults(){
      this._service.get_search_results(this._slug, this._next).subscribe(
              data =&gt; {
                  this.results.concat(data.results);
                  this._next = data.next;
              },
              err =&gt; {
                  console.log(err);
              }
          );
  }
  </code></pre>
  
  <p>How can I concatenate <code>data.results</code> to <code>this.results</code> with typescript and  angular?</p>
  
  <p><code>this._slug</code> and <code>this._next</code> are set on class.</p>
  
  <p>thanks.</p>