import deepEqual from 'deep-equal';

/**
 * Check if two router states are equal, using location.key.
 * @returns {Boolean}
 */
export default function routerStateEquals(a, b) {
  if (!a && !b) return true;
  if ((a && !b) || (!a && b)) return false;

  return (
    a.location.pathname === b.location.pathname &&
    a.location.search === b.location.search &&
    deepEqual(a.location.state, b.location.state)
  );
}

@@ -77,16 +77,19 @@
 qual
-, using 
+. Ignores %60
 loca
@@ -96,16 +96,17 @@
 tion.key
+%60
 .%0A * @re

Update jsdoc comment