{"ScriptPreparationCode":"var inputSet = [];\r\nfor (var i = 0; i \u003C 100000; i\u002B\u002B) {\r\n inputSet.push(Math.floor(Math.random() * 100));\r\n}","TestCases":[{"Name":"array.filter","Code":"var tempResult = [];\r\ninputSet.forEach(function(input) {\r\n var stripped = tempResult.filter(function(res) { return res !== input });\r\n if (stripped.length \u003C tempResult.length) {\r\n tempResult = stripped;\r\n } else {\r\n tempResult = tempResult.concat([input]);\r\n }\r\n});","IsDeferred":false},{"Name":"array.indexOf","Code":"var tempResult = [];\r\ninputSet.forEach(function(input) {\r\n var index = tempResult.indexOf(input);\r\n if (index !== -1) {\r\n tempResult = tempResult.slice(0, index).concat(tempResult.slice(index \u002B 1));\r\n } else {\r\n tempResult = tempResult.concat([input]);\r\n }\r\n});\r\n","IsDeferred":false}]}