…ng object rather than creating a new object is usually a bug. At the very least, it is error-prone. Be careful with Object.assign().A Functional Programmer’s Introduction to JavaScript (Composing Software)6.8K54Eric ElliottRandy MacDonaldFollowFeb 25, 2017 · 1 min readAlways doing o.assign({},…); is a good enough level of care, imo.