javascript - Object spread vs. Object.assign

preview_player
Показать описание
Let’s say I have an options variable and I want to set some default value.
What’s is the benefit / drawback of these two alternatives?
Using object spread
options = {...optionsDefault, ...options};

This is the commit that made me wonder.
Рекомендации по теме
join shbcf.ru