{"ScriptPreparationCode":"var obj = {};\r\nvar arr = [\u0027a\u0027, \u0027b\u0027, \u0027c\u0027, \u0027d\u0027];","TestCases":[{"Name":"write without reading","Code":"for (var i = 0; i \u003C 10000; i\u002B\u002B) {\r\n obj[arr[i % 4]] = true;\r\n}","IsDeferred":false},{"Name":"check first before writing","Code":"var key;\r\nfor (var i = 0; i \u003C 10000; i\u002B\u002B) {\r\n key = arr[i % 4];\r\n if (!obj[key]) {\r\n obj[key] = true;\r\n }\r\n}","IsDeferred":false}]}