typescript for each array item add to new array code example Example: how to add an element to a Typescript array your_array.push(the_element);