Be careful with the spread syntax of ES6

The spread syntax is a JavaScript feature that really comes in handy for several use cases. Yet there are some caveats that you should be aware of when using it. What is the spread syntax? The spread syntax ... can be used together with JavaScript objects and iterables (such as arrays) in JavaScript ES6 or TypeScript. When using