Returns the last 'n' elements from the given array.
The array from which to extract elements.
The number of elements to extract from the end of the array.
A new array containing the last 'n' elements from the input array.
Returns the last 'n' elements from the given array.