Loading...
By continuing to use the platform, you accept the terms of the Privacy Policy and the use of cookies.
Create type PathValue<T, P> for Hack Frontend that accepts an object and string path (e.g., "user.profile.hackFrontendLevel") and returns the type of the value at that path.
This is a real interview question from Yandex!
Run your code to see results.
Click the Run button above
Create type PathValue<T, P> for Hack Frontend that accepts an object and string path (e.g., "user.profile.hackFrontendLevel") and returns the type of the value at that path.
This is a real interview question from Yandex!