Currently, my code uses the jexl.eval function to evaluate a value like so:
jexl.eval("dataset[0].data['Entity Name'].toLowerCase().replace(/ /g, '_')", data);
The value of dataset[0].data['Entity Name'] is always a string and never null. However, there seems to be an error in jexl.eval as it consistently returns an empty string.
I am uncertain whether toLowerCase() and replace() are supported functions in this context or if there may be a syntax issue in my code?
For further exploration, you can check out this jexl playground tool for further investigation.