Converts an arguments object to a JavaScript array (Array).
If there is a single argument after the start index and that argument is an array, that array will be returned.
This helper is kept for Lara code using directly the arguments object. If you are using Javascript, consider using [https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/rest_parameters](rest parameters) to extract the variadic arguments of your function, and using the flattenArgsArray function to perform the single-element flattening, if needed.
Parameters
args: any
The original arguments object.
start: number = 0
The index where we begin the conversion (inclusive).
Converts an arguments object to a JavaScript array (Array).
If there is a single argument after the start index and that argument is an array, that array will be returned. This helper is kept for Lara code using directly the
arguments
object. If you are using Javascript, consider using [https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/rest_parameters](rest parameters) to extract the variadic arguments of your function, and using theflattenArgsArray
function to perform the single-element flattening, if needed.