It is necessary to write a method to get the value by key from an object with unlimited nesting and the signature
get(path: string, data: Record<string, unknown>): unknown
const data = { user: { profile: { name: 'Name' } } }
get('user.profile.name', data)