This is how attributes are defined. The value can be at any level deep, that is defined in element variable. Is there any way I can access deeper values?
const configurations = {
id: "1",
name: {
first: "firstName",
last: "lastName",
},
}
const element = {
attribute: "name.first",
}
const temp = configurations[element.attribute]; // how can I get firstName here
console.log("temp..,",temp); // now temp is undefined