Typescript Type Array Object In Javascript Syntax For Loop