Php Loop Through Object Array In Typescript Compiler Vs Code