I have some data passed to me as ‘data’ and when I do console.log(data.person) I see the returned structure as
Person {
first,'John',
last,'Doe'
}
Now, Person is part of “person” which is
person:
Person {
first: ‘John’,
last: ‘Doe’
}
but when I do console.log(data.person.Person) I get an error of Person is undefined or possibly null if I’m misremembering. How do I access “first” value?