{"ScriptPreparationCode":null,"TestCases":[{"Name":"foreach","Code":"const a = [0, 1, 2, 4, 5, 6, 8, 9, 10, 11, 13, 14, 15];\r\nconst number = Math.random()*15;\r\na.forEach((t) =\u003E {\r\nif (t == number) return t;\r\n});\r\nreturn undefined;\r\n ","IsDeferred":false},{"Name":"for..in","Code":"const a = [0, 1, 2, 4, 5, 6, 8, 9, 10, 11, 13, 14, 15];\r\nconst number = Math.random()*15;\r\nfor (const t in a){\r\n if (t === number) return t;}\r\nreturn undefined;","IsDeferred":false},{"Name":"for..of","Code":"const a = [0, 1, 2, 4, 5, 6, 8, 9, 10, 11, 13, 14, 15];\r\nconst number = Math.random()*15;\r\nfor (const t of a){\r\n if (t === number) return t;}\r\nreturn undefined;","IsDeferred":false},{"Name":"for (no cached length)","Code":"const a = [0, 1, 2, 4, 5, 6, 8, 9, 10, 11, 13, 14, 15];\r\nconst number = Math.random()*15;\r\nfor (let i = 0; i \u003C a.length; i\u002B\u002B){\r\n if (a[i] === number) return a[i];}\r\nreturn undefined;","IsDeferred":false},{"Name":"for (cached length)","Code":"const a = [0, 1, 2, 4, 5, 6, 8, 9, 10, 11, 13, 14, 15];\r\nconst number = Math.random()*15;\r\nconst length = a.length;\r\nfor (let i = 0; i \u003C length; i\u002B\u002B){\r\n if (a[i] === number) return a[i];}\r\nreturn undefined;","IsDeferred":false},{"Name":"find","Code":"const a = [0, 1, 2, 4, 5, 6, 8, 9, 10, 11, 13, 14, 15];\r\nconst number = Math.random()*15;\r\nreturn a.find(t =\u003E t === number);","IsDeferred":false}]}