Typescript Iterate Through Array