code: function (left, right) {
          if (!left && !right) {
              return true;
          }
          var matches = true;
  
          for (var prop in right) {
              if (!right.hasOwnProperty(prop)) {
                  continue;
              }
              matches &= (left[prop] == right[prop]);
          }
          return matches;
      }
docs: Iterates over the properties of the right object, checking to make
  sure the properties on the left object match.
  @param left
  @param right