Cómo llegar al nodo de nivel 4 y leer su valor
Ejemplo de código en el área de juegos de TS
const sectors = { "level1": [{ "Electricity": [{ "level2": [{ "Electricity, gas & steam production & supply": [{ "level3": [{ "Electric power generation, transmission and distribution": [{ "level4": [ "Electric power generation, transmission and distribution" ] }], "Manufacture of gas; distribution of gaseous fuels through mains": [{ "level4": [ "Manufacture of gas; distribution of gaseous fuels through mains" ] }], "Steam and air conditioning supply": [{ "level4": [ "Steam and air conditioning supply" ] }] }] }] }] }], "Manufacturing": [{ "level2": [{ "Manufacture of basic metals": [{ "level3": [{ "Casting of metals": [{ "level4": [ "Casting of iron and steel", "Casting of non-ferrous metals" ] }], "Manufacture of basic iron and steel": [{ "level4": [ "Manufacture of basic iron and steel" ] }], "Manufacture of basic precious and other non-ferrous metals": [{ "level4": [ "Manufacture of basic precious and other non-ferrous metals" ] }] }] }] }] }] }] } console.clear(); //console.log(Object.keys(sectors.level1)); //How to get to level4 node and read its value console.log(sectors.level1);