Why { …defaultValues, …newValues } can hide a bug
Using the spread operator to create a new object using other objects is not unusual, but what happens if both objects have the same key? TL;DR: This article explores a common issue with the spread operator in JavaScript when merging...