Php Loop Through Object Array Typescript Playgrounds