add in array typescript code example
Example 1: how to add an element to a Typescript array
your_array.push(the_element);
Example 2: typescript array insert
const months = ['Jan', 'March', 'April', 'June'];
months.splice(1, 0, 'Feb');
your_array.push(the_element);
const months = ['Jan', 'March', 'April', 'June'];
months.splice(1, 0, 'Feb');