I have an object as follows:
let utx = module.exports = {
params: {
icon1: 'some value',
icon2: 'some value',
type1: {
messages: {
accept: {
status: utx.params.icon1
}
}
}
}
};
I'm trying to reference the icon1
value deep inside the same object but it's not working, i get an error utx is undefined
.
Anyone know why this is?