I want to create a log function where I can insert variable names like this:
var a = \'123\',
b = \'abc\';
log([a, b]);
And the result sho
I had a somewhat similar problem, but for different reasons.
The best solution I could find was:
MyArray = ["zero","one","two","three","four","five"];
MyArray.name="MyArray";
So if:
x=MyArray.name;
Then:
X=="MyArray"
Like I said, it suited my needs, but not sure HOW this will work for you. I feel silly that I even needed it, but I did.