Currently, I am facing a challenge with retrieving a variable from an object.
cell: (row: any) => `${row.testcolumn}`
The issue arises because I do not know the value of 'testcolumn' in advance since this process is dynamic. Despite my attempts to use a nested template string strategy, it fails to compile.
cell: (row: any) => `${row.(`${varString}`)}`
I have also experimented with simply using the variable name instead of nesting within a template string. However, this approach only searches for the value of varString in the object, which does not exist. Is there a way for me to utilize a nested literal to substitute the string value into the template literal while still searching for row.testcolumn rather than row.varString?