Solución
solution.tsTypeScript
function getType(value: unknown): string {
if(value === null) return "null";
if(Array.isArray(value)) return "array";
return typeof(value);
}
// No modificar: necesario para evaluar el resultado.
export { getType };0respuestas