{"ScriptPreparationCode":"var sampleObject = {\r\n \u0022buttonText\u0022: \u0022test\u0022,\r\n \u0022codeType\u0022: \u0022NO_CODE\u0022,\r\n \u0022comment\u0022: \u0022test\u0022,\r\n \u0022content\u0022: \u0022\u0022,\r\n \u0022couponCode\u0022: \u0022test\u0022,\r\n \u0022couponImage\u0022: {\r\n \u0022objectURL\u0022: {\r\n \u0022changingThisBreaksApplicationSecurity\u0022: \u0022blob:http://localhost:4200/525f5507-fa5d-4f34-af0a-39d7579ff4c1\u0022\r\n }\r\n },\r\n \u0022couponImageBig\u0022: {\r\n \u0022objectURL\u0022: {\r\n \u0022changingThisBreaksApplicationSecurity\u0022: \u0022blob:http://localhost:4200/24fb3352-d37c-4272-9e62-41c1f6032b7d\u0022\r\n }\r\n },\r\n \u0022discount\u0022: \u0022test\u0022,\r\n \u0022endDate\u0022: \u00222021-08-31 22:00:00.000\u0022,\r\n \u0022priority\u0022: 3,\r\n \u0022startDate\u0022: \u00222021-08-26 22:00:00.000\u0022,\r\n \u0022title\u0022: \u0022test\u0022,\r\n \u0022type\u0022: \u0022STANDARD\u0022,\r\n \u0022urlTerms\u0022: \u0022test\u0022,\r\n \u0022urlTermsAndroid\u0022: \u0022test\u0022,\r\n \u0022urlTermsHuawei\u0022: \u0022test\u0022,\r\n \u0022urlTermsIos\u0022: \u0022test\u0022,\r\n \u0022urlWebViewAndroid\u0022: \u0022test\u0022,\r\n \u0022urlWebViewHuawei\u0022: \u0022test\u0022,\r\n \u0022urlWebViewIos\u0022: \u0022test\u0022\r\n}","TestCases":[{"Name":"forEach","Code":"const sampleFormData = new FormData();\r\nObject.keys(sampleObject).forEach(key =\u003E sampleFormData.append(key, sampleObject[key]));","IsDeferred":false},{"Name":"reduce","Code":"const sampleFormData = sampleObject =\u003E Object.keys(sampleObject).reduce((formData, key) =\u003E {\r\n formData.append(key, sampleObject[key]);\r\n return formData;\r\n}, new FormData());\r\nconst sampleFormDataObj = sampleFormData(sampleObject);","IsDeferred":false},{"Name":"for..in","Code":"const sampleFormData = new FormData();\r\nfor (const key in sampleObject) {\r\n sampleFormData.append(key, sampleObject[key]);\r\n}","IsDeferred":false}]}