FlashcardIntermediate
Spread makes a shallow copy
The spread operator copies only the top level, so nested objects remain shared references.
Question
What kind of copy does the spread operator (...) create?
Click to reveal answer
The spread operator copies only the top level, so nested objects remain shared references.
What kind of copy does the spread operator (...) create?