export function getValueFromPath(root, path) { if (!root || !path) return; const keys = path.toString().split('.'); let current = root; for (const key of keys) { if (current[key] === undefined) return undefined; else current = current[key]; } return current; }