{"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":"Find","Code":"var tempResult = !!Math.round(Math.random()) ? hasZero.find(v =\u003E v === 0) : withoutZero.find(v =\u003E v === 0);","IsDeferred":false},{"Name":"FindIndex","Code":"var tempResult = !!Math.round(Math.random()) ? hasZero.findIndex(v =\u003E v === 0) : withoutZero.findIndex(v =\u003E v === 0);","IsDeferred":false},{"Name":"loop","Code":"var index = 0;\r\nvar tempResult = null;\r\nif (!!Math.round(Math.random())) {\r\n for (let item of hasZero) {\r\n if (item == 0) {\r\n tempResult = index;\r\n break;\r\n }\r\n else\r\n \tindex\u002B\u002B;\r\n }\r\n}\r\nelse {\r\n for (let item of withoutZero) {\r\n if (item == 0) {\r\n tempResult = index;\r\n break;\r\n }\r\n else\r\n \tindex\u002B\u002B;\r\n }\r\n}","IsDeferred":false}]}