{"ScriptPreparationCode":"var sampleObject = {\r\n \u0022id\u0022: \u00220001\u0022,\r\n \u0022type\u0022: \u0022donut\u0022,\r\n \u0022name\u0022: \u0022Cake\u0022,\r\n \u0022ppu\u0022: 0.55\r\n };\r\nvar sampleObject2 = Object.create(null);\r\nvar sampleObject3 = null;\r\nvar sampleObject4 = 100;\r\n\r\nclass Foo {\r\n constructor() {\r\n this.a = 1;\r\n }\r\n}\r\n\r\nvar sampleObject5 = new Foo();\r\n\r\nfunction isObject(any) {\r\nreturn\r\n(\r\n any != null \u0026\u0026\r\n (any.constructor === Object ||\r\n (typeof any === \u0027object\u0027 \u0026\u0026 Object.getPrototypeOf(any) === null))\r\n )\r\n}","TestCases":[{"Name":"Lodash isPlainObject","Code":"_.isPlainObject(sampleObject);\r\n_.isPlainObject(sampleObject2);\r\n_.isPlainObject(sampleObject3);\r\n_.isPlainObject(sampleObject4);\r\n_.isPlainObject(sampleObject5);","IsDeferred":false},{"Name":"JS Type Check","Code":"isObject(sampleObject);\r\nisObject(sampleObject2);\r\nisObject(sampleObject3);\r\nisObject(sampleObject4);\r\nisObject(sampleObject5);","IsDeferred":false}]}