get-function-args-x
Get the args of the function.
module.exports(fn)
⇒ undefined
| Array
⏏
This method returns the args of the function, or undefined
if not
a function.
Kind: Exported function
Returns: undefined
| Array
- The args of the function, or undefined
if
not a function.
Param | Type | Description |
---|---|---|
fn | function |
The function to get the args of. |
Example
; ; // undefined; // undefined; // undefined; // undefined; // undefined; // []; // []; // []; // ['a', 'b']; // ['a', 'b']; // ['a', 'b']; // ['a', 'b']