Returns a new array containing the first count
elements from the input array arr
.
If count
is greater than the length of arr
, the entire array is returned.
The array to take elements from.
The number of elements to take.
A new array containing the first count
elements from arr
.
Alias