matchRoutes<RouteObjectType = AgnosticRouteObject>(routes, locationArg, basename): AgnosticRouteMatch<string, RouteObjectType>[] | null
Matches the given routes to a location and returns the match data.