Typescript Iterate Through Array Javascript Push Method