Great explanation! I knew about the rest parameters and even used them in my code, and now, thanks to your explanation, I will also use the spread operator. First of all, I replace all Object.assign() in my code with a short form.
Thanks for your feedback.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.