typescript javascript join two arrays into a single array code example Example: angular append array to another this.results = [ ...this.results, ...data.results];