is there anyway to access the "name" of the parameter as such:
function(arg1, arg2) {
debug("arg1 is rotten!");
}
Right now if i change the parameter name I'd have to change the name within the string as well, so I was looking if javascript had a solution like How do i bind function arguments to the parameters i supply in creating an ArgumentException object?
I want a way to be able to do something like:
function(arg1, arg2) {
debug(arguments[0].name+" is rotten!");
}
so that I would not have to search for the changes and change accordingly whenever i change the name of the parameter (sometimes its used more than once!)