Returns the first 'n' elements of an array.
The array from which to extract elements.
The number of elements to extract from the start of the array.
A new array containing the first 'n' elements from the input array.
Returns the first 'n' elements of an array.