Skip to content

Tag: reflection

get name of input variable (like Function.name)

I have a Function in which I want to retrieve the name of the variable that was used to call the function. How can I do that? If variable was a Function, I could use variable.name. I am aware of this, but it will only return “variable”, not the name of the variable that was put into the function. …