grabMatchParams = rawPathname => {
  const trimmedPathname = cleanPath(rawPathname)

  const pickPaths = matchPaths.map(({ path, matchPath }) => {
    return {
      path: matchPath,
      originalPath: path,
    }
  })

  const path = pick(pickPaths, trimmedPathname)

  if (path) {
    return path.params
  }

  return {}
}
Return a matchpath params from reach/router rules
if `match-paths.json` contains `{ ":bar/*foo" }`, and the path is /baz/zaz/zoo
then it returns
 { bar: baz, foo: zaz/zoo }

@param {string} rawPathname A raw pathname
@return {object}