{"ScriptPreparationCode":"function hasIn(object, path) {\r\n if (path in object) {\r\n return true;\r\n }\r\n\r\n let ret = false;\r\n path = path.split(\u0027.\u0027);\r\n if (path.length \u003E 1) {\r\n let obj = object;\r\n for (const prop of path) {\r\n ret = prop in obj;\r\n if (!ret) {\r\n break;\r\n }\r\n obj = obj[prop];\r\n }\r\n }\r\n return ret;\r\n}\r\n\r\nvar testObject = {\r\n\ta: {\r\n \tb: 1,\r\n },\r\n}\r\n","TestCases":[{"Name":"lodash hasIn","Code":"_.hasIn(testObject, \u0027a.b\u0027)","IsDeferred":false},{"Name":"custom hasIn","Code":"hasIn(testObject, \u0027a.b\u0027)","IsDeferred":false}]}