code: function(elem) {
            if(util.isArray(elem)) {
              return (elem.length === 0);
            }
            if(elem instanceof Object) {
              if(util.isDate(elem)) {
                return false;
              }
              return (Object.getOwnPropertyNames(elem).length === 0);
            }
            return false;
          }
docs: Removing empty changes to patch only effective changes