Extract a portion of an array based on specified start index and count
[1, 2, 3, 4, 5]
.Start
to 2
and the Count
to 2
.input
.output
should be [3, 4]
.input
is not provided or is not an arrayWhat happens if the Start is greater than the length of the array?
What happens if the Count is greater than the number of elements in the array?
Can I use negative numbers for the Start and Count?