Pregunta de entrevista de Globant

Write a recursive function to get the type properties of a object with nested objects.