copy
  Returns a new array which is a copy of the specified range of the original array.
Parameters
from
the start of the range (inclusive) to copy.
to
the end of the range (exclusive) to copy.
Returns a new array which is a copy of the specified range of the original array.
the start of the range (inclusive) to copy.
the end of the range (exclusive) to copy.