Typescript Iterate Through Array Js W3schools