{"ScriptPreparationCode":"var hasZero = [];\r\nvar withoutZero = [];\r\nfor (var i = 0; i \u003C 10000; i\u002B\u002B) {\r\n hasZero.push(Math.floor(Math.random() * 1000));\r\n withoutZero.push(Math.floor(Math.random() * 1000) \u002B 1)\r\n}","TestCases":[{"Name":"Array.some","Code":"var tempResult = !!Math.round(Math.random()) ? hasZero.some(v =\u003E v === 0) : withoutZero.some(v =\u003E v === 0);","IsDeferred":false},{"Name":"Array.filter","Code":"var tempResult = !!Math.round(Math.random()) ? hasZero.filter(v =\u003E v === 0) : withoutZero.filter(v =\u003E v === 0);","IsDeferred":false},{"Name":"Array.indexOf","Code":"var tempResult = !!Math.round(Math.random()) ? hasZero.indexOf(0) \u003E -1 : withoutZero.indexOf(0) \u003E -1;","IsDeferred":false},{"Name":"Array.for","Code":" \r\nvar data = !!Math.round(Math.random()) ? hasZero : withoutZero;\r\nvar action = (a) =\u003E a === 0;\r\nvar length = data.length;\r\nvar tempResult = false; \r\n for (let i = 0; i \u003C length; i\u002B\u002B) {\r\n const tempResult = action(data[i], i);\r\n if (tempResult === true) {\r\n break;\r\n }\r\n }","IsDeferred":false}]}