{"ScriptPreparationCode":"var tests = {\r\n\t_emptyObj: {},\r\n \t_emptyArr: [],\r\n \t_zero: 0,\r\n \t_emptyString: \u0027\u0027,\r\n \t_null: null,\r\n \t_undef: undefined,\r\n \t_falsy: false,\r\n \t_notemptyObj: {a:1, b:2},\r\n \t_notemptyArr: [1,2,3],\r\n \t_notzero: 10,\r\n \t_notemptyString: \u0027hello\u0027,\r\n \t_notfalsy: true,\r\n};\r\n\r\nvar myIsEmpty = (data) =\u003E (typeof data !== \u0027object\u0027 ? !data : data === null || !Object.keys(data).length);\r\n\r\nvar domIsEmpty = (data) =\u003E {\r\n if (typeof data === \u0022object\u0022)\r\n {\r\n if(!data) return true;\r\n if (Array.isArray(data)) return !data.length;\r\n return !Object.keys(data).length\r\n }\r\n else\r\n {\r\n return !data\r\n }\r\n}\r\n\r\nvar frankieIsEmpty = data =\u003E {\r\n return typeof data === \u0027object\u0027 \u0026\u0026 data !== null ? !Object.keys(data).length : !data;\r\n }\r\n\r\nvar testFunction = (fun) =\u003E Object.keys(tests).map((key) =\u003E fun(tests[key]))","TestCases":[{"Name":"Lodash.js filter","Code":"testFunction(_.isEmpty);\r\n\r\n","IsDeferred":false},{"Name":"Andy","Code":"testFunction(myIsEmpty);","IsDeferred":false},{"Name":"Dom","Code":"testFunction(domIsEmpty);","IsDeferred":false},{"Name":"Frankie","Code":"testFunction(frankieIsEmpty);","IsDeferred":false}]}