Either an array, the first element of the var args or undefined
, if no argument was given.
Second to last element, if var args were used, empty array, if the first argument is an array.
Copyright Ⓒ 2023 SAP SE or an SAP affiliate company. All rights reserved.
We want to provide methods which accept a variable single number of elements and arrays. The overloaded signature to achieve this is:
This wrapper methods makes it easy build an array from the input.
Returns
Array from the input or empty array if no input was given.