UNPKG

@tanstack/router-core

Version:

Modern and scalable routing for React applications

17 lines (16 loc) 360 B
//#region src/Matches.ts /** * Narrows matches based on a path * @experimental */ var isMatch = (match, path) => { const parts = path.split("."); let part; let i = 0; let value = match; while ((part = parts[i++]) != null && value != null) value = value[part]; return value != null; }; //#endregion export { isMatch }; //# sourceMappingURL=Matches.js.map