{"ScriptPreparationCode":"var allHeaders = {\r\n \u0027Accept-Encoding\u0027: \u0027gzip,deflate\u0027,\r\n \u0027Accept-Language\u0027: \u0027en-US\u0027,\r\n \u0027Content-Type\u0027: \u0027application/json\u0027,\r\n \u0027User-Agent\u0027: \u0060(compatible; Mozilla/5.0; MSIE 9.0; Trident/5.0;})\u0060,\r\n \u0027Proxy-Connection\u0027: \u0027Keep-Alive\u0027,\r\n Connection: \u0027Keep-Alive\u0027,\r\n Accept: \u0027application/hal\u002Bjson, application/json\u0027,\r\n};\r\n\r\nfunction omit(obj, keys) {\r\n var result = {};\r\n for (let i in obj) {\r\n if (keys.indexOf(i) \u003E= 0) continue;\r\n result[i] = obj[i];\r\n }\r\n return result;\r\n}\r\n\r\nfunction forEach(obj, keys) {\r\n var result = {};\r\n keys.forEach(k =\u003E {\r\n \tif (obj[k]) {\r\n result[k] = obj[k];\r\n }\r\n });\r\n return result;\r\n}","TestCases":[{"Name":"omit for 3 keys","Code":"omit(allHeaders, [\u0027Accept-Encoding\u0027, \u0027User-Agent\u0027, \u0027Connection\u0027]);","IsDeferred":false},{"Name":"foreach for 3 keys","Code":"forEach(allHeaders, [\u0027Accept-Encoding\u0027, \u0027User-Agent\u0027, \u0027Connection\u0027]);","IsDeferred":false},{"Name":"omit for 2 keys","Code":"omit(allHeaders, [\u0027Accept-Encoding\u0027, \u0027Connection\u0027]);","IsDeferred":false},{"Name":"forEach for 2 keys","Code":"forEach(allHeaders, [\u0027Accept-Encoding\u0027, \u0027Connection\u0027]);","IsDeferred":false}]}