How to access value of userPass from array of object using angular 7?
I need to access Property userPass from array of object
I have variable from type any his name auth
auth have array of object
I need to access property value from userpass
auth is
[{"userLoginID":0,"userName":"test","userMail":"ahmedsa.aziz.ba@gmail.com","userPass":"12345678","fkTeamID":0
,"isAdmin":false,"createdBy":0,"createdDate":"0001-01-01T00:00:00","isHidden":false}]
I need to access userPass value meaning i need to access 12345678
so what i do to make that please using angular 7
What I have tried:
const passusr = [...new Set(auth.map(au => au.userPass))]