
flatMenuKeys
[“/dashboard”, “/dashboard/analysis”, “/dashboard/analysis/realtime”, “/dashboard/analysis/offline”, “/list”]
�
paths [“/list”]
export function getMenuMatchKeys (flatMenuKeys, paths) {return paths.reduce((matchKeys, path) => {const filterPath = flatMenuKeys.filter(item => {return pathToRegexp(item).test(path)})return matchKeys.concat(filterPath)}, []);}
pathToRegexp(item)

