code: function(obj1, obj2) {
          for (attr in obj2) {
            if (obj1.hasOwnProperty(attr) || obj2.hasOwnProperty(attr)) {
              obj1[attr] = obj2[attr];
            }
          }
        }
docs: **Merge two objects, with `obj2` overwriting `obj1`** The merge is shallow, but that's all that is required for our purposes.