JavaScriptES6+ Features

2 items

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