Array.prototype.copyWithinintermediateconst arr = [1, 2, 3]
const result = arr.copyWithin(0, 1)
console.log(result === arr) // β true (same reference)copyWithin() mutates the array in place and returns the same array reference.
copyWithin() mutates the original array and returns a reference to that same array (not a copy). This means the returned value and the original variable both point to the same array.
Challenge: Implement isSameArray(arr) that returns true when the result of calling arr.copyWithin(0, 1) is the exact same reference as arr.
isSameArray([1, 2, 3]) // β true