Portfolio/src/composables/useUtils.ts
Matthew L McPeak ccf5ebd6c9
Some checks failed
ci / build (push) Failing after 10s
ci / publish (push) Has been skipped
Inital Commit
2026-06-19 06:36:35 -04:00

11 lines
198 B
TypeScript

export const useUtils = () => {
const normalizePath = (path: string) => {
return path.endsWith("/") ? path.slice(0, -1) : path;
};
return {
url: {
normalizePath,
},
};
};