Get All Values From Object Array Typescript Vs Angular