{"ScriptPreparationCode":"var size = 10000\r\nvar arr = []\r\nfor (let i = 0; i \u003C size; i\u002B\u002B) {\r\n arr.push(i)\r\n}\r\nvar research = 6578;","TestCases":[{"Name":"For i\u002B\u002B (const size)","Code":"const a_size = arr.length;\r\nvar index = -1;\r\nfor (let y = 0; y \u003C a_size; y\u002B\u002B) {\r\n if (research === arr[y]) {\r\n index = y;\r\n break;\r\n }\r\n}","IsDeferred":false},{"Name":"For i\u002B\u002B (.length)","Code":"var index = -1;\r\nfor (let y = 0; y \u003C arr.length; y\u002B\u002B) {\r\n if (research === arr[y]) {\r\n index = y;\r\n break;\r\n }\r\n}","IsDeferred":false},{"Name":"For ... in","Code":"var index = -1;\r\nfor (const y in arr) {\r\n if (research === arr[y]) {\r\n index = y;\r\n break;\r\n }\r\n}","IsDeferred":false},{"Name":"for ... of","Code":"var index = -1;\r\nfor (const el of arr) {\r\n if (research === el) {\r\n index = el;\r\n break;\r\n }\r\n}","IsDeferred":false},{"Name":"indexOf","Code":"var index = arr.indexOf(research)","IsDeferred":false},{"Name":"findIndex","Code":"var index = arr.findIndex(e =\u003E e === research)","IsDeferred":false},{"Name":"Includes","Code":"var found = arr.includes(research)","IsDeferred":false},{"Name":"Some ?","Code":"var found = arr.some(e =\u003E e === research)","IsDeferred":false},{"Name":"forEach","Code":"var index = -1;\r\narr.forEach((el, y) =\u003E {\r\n\tif (research === el) {\r\n \tindex = y;\r\n \treturn;\r\n \t}\r\n})","IsDeferred":false}]}