{"ScriptPreparationCode":"var person = {\r\n name: \u0027Frederick\u0027,\r\n lastName: \u0027Corcino Alejo\u0027,\r\n foo: {\r\n bar: \u0022baz\u0022\r\n }\r\n};\r\n\r\nfunction get(obj, path, defaultValue = undefined) {\r\n const travel = regexp =\u003E\r\n String.prototype.split\r\n .call(path, regexp)\r\n .filter(Boolean)\r\n .reduce((res, key) =\u003E (res !== null \u0026\u0026 res !== undefined ? res[key] : res), obj);\r\n const result = travel(/[,[\\]]\u002B?/) || travel(/[,[\\].]\u002B?/);\r\n return result === undefined || result === obj ? defaultValue : result;\r\n}","TestCases":[{"Name":"Lodash get","Code":"_.get(person, \u0027foo.bar\u0027);","IsDeferred":false},{"Name":"native","Code":"get(person, \u0022foo.bar\u0022);","IsDeferred":false}]}