Typescript Get Value From Object Array Iterator Javascript W3schools