---
title: equal
---

# equal

<a href="https://github.com/remix-run/remix/blob/remix@3.0.0-alpha.6/packages/route-pattern/src/lib/specificity.ts#L33" target="_blank">View Source</a>

## Summary

Returns true if matches `a` and `b` have equal specificity.

## Signature

```ts
function equal(a: RoutePatternMatch, b: RoutePatternMatch): boolean;

```

## Params

### a

the first match to compare

### b

the second match to compare

## Returns

true if `a` and `b` have equal specificity