Get Object From Array Of Objects In Typescript Vs Angular