Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function isMatchEqual(match: IMatch, nextMatch: IMatch): boolean {
if (match.url !== nextMatch.url) {
return false;
}
if (match.path !== nextMatch.path) {
return false;
}
if (match.isExact !== nextMatch.isExact) {
return false;
}
return shallowEqual(match.params, nextMatch.params);
}