Suppose I have a variable like this:
myVar = `Some text with ${eggs} and ${noodles} or ${pies}`;
Is there a method to obtain myVar as an unprocessed string prior to variable substitution, essentially "Some text with ${eggs} and ${noodles} or ${pies}"?
My goal is to dynamically create an array containing the variable names (eggs, noodles, pies). Since I have multiple myVars, I want to avoid manually typing out each array.