I want to convert string to object's key
I know this logic
const object = { name : 'test' }
const string = name
object[string] = name
I have something problems about this.
const string = common.device.type.pc.name
object[string] <- this is not working