{"ScriptPreparationCode":"var a = {a:{b:{c:20}}};","TestCases":[{"Name":"lodash get","Code":"let result = _.get(a, \u0027a.b.c\u0027, \u0022\u0022);","IsDeferred":false},{"Name":"custom get","Code":"const get = (mainObj, path, def=null) =\u003E {\r\n const newPath = path.split(\u0027.\u0027); //[ \u0027a\u0027, \u0027b\u0027, \u0027c\u0027 ]\r\n\r\n for(let path of newPath){\r\n mainObj = mainObj[path]\r\n }\r\n \r\n // newPath.forEach(path=\u003E{\r\n // mainObj = mainObj[path] //{a:{b:{c:20}}} //{b:{c:20}} //{c:20}\r\n // })\r\n\r\n return mainObj\r\n}","IsDeferred":false}]}