{"ScriptPreparationCode":"let array = Array.from({length:4096},(_,i)=\u003Ei).sort(() =\u003E Math.random() - 0.5)","TestCases":[{"Name":"Array.reduce()","Code":"let object = array.reduce((pool, item, nth) =\u003E {\r\n pool[nth] = item;\r\n return pool;\r\n}, {});","IsDeferred":false},{"Name":"For loop","Code":"let object = {};\r\nlet length = array.length;\r\nfor(let i = 0; i \u003C length; i\u002B\u002B) {\r\n object[i] = array[i];\r\n}","IsDeferred":false},{"Name":"Object.fromEntries() \u002B Object.entries()","Code":"let object = Object.fromEntries(Object.entries(array))","IsDeferred":false},{"Name":"Object.assign() ","Code":"let object = Object.assign({},array)","IsDeferred":false},{"Name":"Object ...spread","Code":"let object = {...array}","IsDeferred":false}]}