Method Function.getArguments
Get the argument names of a functions
-
Syntax
Array Function.getArguments()
Returns the names of the argument as an array - Return value Array holding each argument of the function as strings.
-
Examples
- To get the arguments from the function
f(a0,a1,a2) {} // Output [0 -> 'a0', 1 -> 'a1', 2 -> 'a2'] f.getArguments();
- To get the arguments from the function
- Related Function.getBody Function.getName
-
Download
Source
Unless otherwise noted all code in the JSLab Standard Library is licensed as GPLv3. See http://www.gnu.org/licenses/gpl.html for the entire license.
