mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
1 line
1.4 KiB
JSON
1 line
1.4 KiB
JSON
{"ast":null,"code":"function deepFind(obj, path) {\n var paths = path.split('.'),\n current = obj,\n i;\n for (i = 0; i < paths.length; ++i) {\n if (current[paths[i]] == undefined) {\n return undefined;\n } else {\n current = current[paths[i]];\n }\n }\n return current;\n}\nmodule.exports = {\n deepFind: deepFind\n};","map":{"version":3,"names":["deepFind","obj","path","paths","split","current","i","length","undefined","module","exports"],"sources":["C:/Users/eudes.inacio/GabineteDigital/gabinete-digital-fo/src/plugin/deep.js"],"sourcesContent":["function deepFind(obj, path) {\r\n var paths = path.split('.')\r\n , current = obj\r\n , i;\r\n \r\n for (i = 0; i < paths.length; ++i) {\r\n if (current[paths[i]] == undefined) {\r\n return undefined;\r\n } else {\r\n current = current[paths[i]];\r\n }\r\n }\r\n return current;\r\n}\r\n \r\nmodule.exports = {\r\n deepFind: deepFind,\r\n};"],"mappings":"AAAA,SAASA,QAAQA,CAACC,GAAG,EAAEC,IAAI,EAAE;EACzB,IAAIC,KAAK,GAAGD,IAAI,CAACE,KAAK,CAAC,GAAG,CAAC;IACvBC,OAAO,GAAGJ,GAAG;IACbK,CAAC;EAEL,KAAKA,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGH,KAAK,CAACI,MAAM,EAAE,EAAED,CAAC,EAAE;IACjC,IAAID,OAAO,CAACF,KAAK,CAACG,CAAC,CAAC,CAAC,IAAIE,SAAS,EAAE;MAClC,OAAOA,SAAS;IAClB,CAAC,MAAM;MACLH,OAAO,GAAGA,OAAO,CAACF,KAAK,CAACG,CAAC,CAAC,CAAC;IAC7B;EACF;EACA,OAAOD,OAAO;AAClB;AAEAI,MAAM,CAACC,OAAO,GAAG;EACfV,QAAQ,EAAEA;AACZ,CAAC"},"metadata":{},"sourceType":"script"} |