{"ScriptPreparationCode":"function makeid() {\r\n var text = \u0022\u0022;\r\n var possible = \u0022ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\u0022;\r\n\r\n for (var i = 0; i \u003C 5; i\u002B\u002B)\r\n text \u002B= possible.charAt(Math.floor(Math.random() * possible.length));\r\n\r\n return text;\r\n}\r\n\r\nwindow.parentArr = [];\r\n\r\nfor (let i = 0; i \u003C 100; i\u002B\u002B) {\r\n\twindow.parentArr.push(makeid());\r\n}\r\n\r\n","TestCases":[{"Name":"entries","Code":"const newObj = {};\r\n\r\nfor (const [i, v] of window.parentArr.entries()) {\r\n if ((i % 2) === 0) {\r\n\tnewObj[i] = v; \r\n }\r\n}","IsDeferred":false},{"Name":"for","Code":"const newObj = {};\r\n\r\nfor (let i = 0; i \u003C window.parentArr.length; i\u002B\u002B) {\r\n if ((i % 2) === 0) {\r\n\tnewObj[i] = window.parentArr[i]; \r\n }\r\n}","IsDeferred":false},{"Name":"foreach","Code":"const newObj = {};\r\n\r\nwindow.parentArr.forEach((v, i) =\u003E {\r\n if ((i % 2) === 0) {\r\n\tnewObj[i] = v; \r\n }\r\n})","IsDeferred":false},{"Name":"some","Code":"const newObj = {};\r\n\r\nwindow.parentArr.some((v, i) =\u003E {\r\n if ((i % 2) === 0) {\r\n\tnewObj[i] = v; \r\n }\r\n \r\n return false;\r\n})","IsDeferred":false},{"Name":"every","Code":"const newObj = {};\r\n\r\nwindow.parentArr.every((v, i) =\u003E {\r\n if ((i % 2) === 0) {\r\n\tnewObj[i] = v; \r\n }\r\n \r\n return true;\r\n})","IsDeferred":false},{"Name":"for-length","Code":"const newObj = {};\r\n\r\nfor (let i = 0, length = window.parentArr.length; i \u003C length; i\u002B\u002B) {\r\n if ((i % 2) === 0) {\r\n newObj[i] = window.parentArr[i]; \r\n }\r\n}","IsDeferred":false}]}