Methods
(inner) firstArgument(…args) → {*}
Returns the first argument it is invoked with
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
args |
* |
<repeatable> |
any number of arguments |
Returns:
0 index of arguments array
- Type
- *
Example
firstArgument(1) //=> 1
firstArgument(1, 2) //=> 1
firstArgument(1, 2, 3) //=> 1
(inner) secondArgument(…args) → {*}
Returns the second argument it is invoked with
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
args |
* |
<repeatable> |
any number of arguments |
Returns:
1 index of arguments array
- Type
- *
Example
secondArgument(1) //=> undefined
secondArgument(1, 2) //=> 2
secondArgument(1, 2, 3) //=> 2