code: function (a, b) {
              if (a === b) {
                  return true;
              }
              if (a === undef || a === null || b === undef || b === null) {
                  // need type coercion
                  return a == null && b == null;
              }
              if (a instanceof Date && b instanceof Date) {
                  return a.getTime() === b.getTime();
              }
              if (typeof a === 'string' && typeof b === 'string') {
                  return a === b;
              }
              if (typeof a === 'number' && typeof b === 'number') {
                  return a === b;
              }
              if (typeof a === 'object' && typeof b === 'object') {
                  return compareObjects(a, b);
              }    // Straight check
              // Straight check
              return a === b;
          }
docs: Checks to see whether two object are equals.
  @param a
  @param b
  @member KISSY