Array spread copies items into a new array.
const original = ["a", "b"];
const copy = [...original];[...original] creates a separate array with the same items, in order.copy leaves original unchanged.This is a shallow copy: nested arrays or objects would still be shared.
Copy topics into plannedTopics with spread syntax. Add objects only to the copy, then display both arrays.