javascript create array with values of old array plus new ones code example
Example 1: push another array to array typescript
var arrayA = [1, 2];
var arrayB = [3, 4];
var newArray = arrayA.concat(arrayB);
Example 2: https://javascript array
let fruits = ['Apple', 'Banana']
console.log(fruits.length)
// 2