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