The copyWithin() method of Array instances shallow copies part of this array to another location in the same array and returns this array without modifying its length.