argumentNames
1.6

someFunction.argumentNames() -> Array

Reads the argument names as defined in the function definition and returns the values as an array of strings, or an empty array if the function is defined without parameters.

Examples

var fn = function(foo, bar) {
  return foo + bar;
};
fn.argumentNames(); //-> ['foo', 'bar']

Prototype.emptyFunction.argumentNames(); //-> []