http://keith-wood.name/countdown.html
7 Tricks with Resting and Spreading JavaScript Objects
Resting and spreading can be used for more than just resting arguments and spreading arrays. Here are six lesser known tricks when using rest and spread with JavaScript objects. 1. Adding Properties Clone an object while simultaneously adding additional properties to the (shallow) cloned object. In this example user is cloned and password is added into userWithPass. 2. Merge Objects Merge … Read more