Finds the first flat route matching the provided location.
Flattened route list to evaluate.
Browser location whose pathname should be matched.
Matched route with params or null if none match.
null
Finds the first flat route matching the provided location.