code: function (obj, vals) {
      if (obj && vals) {
        for (var x in vals) {
          if (vals.hasOwnProperty(x)) {
            obj[x] = vals[x];
          }
        }
      }
      return obj;
    }
docs: Set the properties of an object to those from another object.
  @param {Object} obj The target object.
  @param {Object} vals The source object.