Returns the first count elements of an array.
count
The source array.
Number of elements to take (must be a non-negative integer).
takeArray([1, 2, 3, 4], 2) // => [1, 2]takeArray([1, 2], 10) // => [1, 2] Copy
takeArray([1, 2, 3, 4], 2) // => [1, 2]takeArray([1, 2], 10) // => [1, 2]
Returns the first
countelements of an array.