Php Loop Through Object Array Typescript Compiler Vs Code