Find any unassigned variables in a JavaScript function
This code evaluates one function.
There are 4 functions.
- The function to be retrieved and evaluated
- The main function that calls two other functions - first converts function to evaluate to a string
- The function to get all the variable names out
- The function to determine what variables have never been assigned a value
This code was written in Apps Script