I'm working on somebody's code and the author isn't available rn. I have an object with another object nested in it, and it's been retrieved from api call. The problem is when i do a console.log on the parent object it shows the nested object in it properly but when i try to log object.object i'm getting an empty object. Any idea on what could cause this problem?
console.log(product) ==> {id: 1, extra:{name:'example'}
console.log(product.extra) ==> {}