Returns a new array containing all but the last element of the given array. If the array is empty, raises an error.
the array to consider
a new array with all but the last element of anArray
anArray
if the array is empty
Returns a new array containing all but the last element of the given array. If the array is empty, raises an error.