Typescript Push Object Into Array Javascript Iteration