{"ScriptPreparationCode":"let items = [];\r\n\r\nfor (let i = 0; i \u003C 100; i\u002B\u002B) {\r\n\titems.push({\r\n\t\tsomething: i\r\n\t});\r\n}\r\nwindow.items = items;","TestCases":[{"Name":"forEach","Code":"let items = window.items;\r\nlet theThing;\r\nitems.forEach(i =\u003E {\r\n \tlet item = i.something;\r\n\tif (theThing || i === 3) {\r\n\t\ttheThing = i \u002B 3;\r\n\t}\r\n});\r\nreturn theThing;","IsDeferred":false},{"Name":"Cache len","Code":"let items = window.items;\r\nlet theThing;\r\nlet len = items.length;\r\nfor (let i = 0; i \u003C len; i\u002B\u002B) {\r\n\tlet item = items[i].something;\r\n\tif (theThing || item === 3) {\r\n\t\ttheThing = item \u002B 3;\r\n\t}\r\n}\r\nreturn theThing;\r\n","IsDeferred":false},{"Name":"No cache len","Code":"let items = window.items;\r\nlet theThing;\r\nfor (let i = 0; i \u003C items.length; i\u002B\u002B) {\r\n\tlet item = items[i];\r\n\tif (theThing || item === 3) {\r\n\t\ttheThing = item \u002B 3;\r\n\t}\r\n}\r\nreturn theThing;\r\n","IsDeferred":false}]}