This commit is contained in:
Stef-00012 2025-01-29 14:08:12 +01:00
parent b3794c199c
commit 44cc6e70f3
No known key found for this signature in database
GPG key ID: 4EA4DF16B1BF5D66
2 changed files with 132 additions and 0 deletions

View file

@ -98,3 +98,6 @@ export function colorHash(str: string) {
return color;
}
function getNestedValue(object: Record<string, unknown>, path: string) {
return path.split('.').reduce((acc, part) => acc && acc[part], obj);
}