matchesRoute(pathname, routes): boolean
Check if a pathname matches any route in the list.
Supports both exact matches and prefix matches
(e.g., "/account" matches "/account/orders").
Parameters
pathname
string
routes
string[]
Returns
boolean