{"ScriptPreparationCode":"var person = {name: \u0027Frederick\u0027, lastName: \u0027Corcino Alejo\u0027, nested: {name: \u0027test\u0027}};\r\nfunction safeGet(obj, path, defaultValue) {\r\n return path.split(\u0027.\u0027).reduce((xs, x) =\u003E (xs \u0026\u0026 xs[x]) ? xs[x] : defaultValue, obj);\r\n}","TestCases":[{"Name":"Lodash get","Code":"_.get(person, \u0027name\u0027, \u0027\u0027);\r\n_.get(person, \u0027nested.name\u0027, \u0027\u0027);","IsDeferred":false},{"Name":"safeGet","Code":"safeGet(person, \u0027name\u0027, \u0027\u0027);\r\nsafeGet(person, \u0027nested.name\u0027, \u0027\u0027);","IsDeferred":false},{"Name":"Native","Code":"person.name;\r\nperson.nested.name;","IsDeferred":false},{"Name":"Native?","Code":"person?.name;\r\nperson?.nested?.name;","IsDeferred":false}]}