v1.0 - Meal planner with favorites, history, and notes

This commit is contained in:
Otto
2026-03-28 18:49:38 +00:00
commit d19ed62e6e
2227 changed files with 433934 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
/**
* Removes everything after the last "/", but leaves the slash.
*/
export default function stripFilename(path: string | undefined | null): string {
if (!path) return '';
const index = path.lastIndexOf('/');
return path.slice(0, index + 1);
}