{"ScriptPreparationCode":"keys = [\u0022a\u0022,\u0022b\u0022,\u0022c\u0022,\u0022d\u0022];\r\nvalues = [1,2,3,4];","TestCases":[{"Name":"forEach #1","Code":"const ob = {};\r\nkeys.forEach((key, i)=\u003Eob[key]=values[i]);","IsDeferred":false},{"Name":"fromEntries and map #1","Code":"const ob = Object.fromEntries( keys.map((key, i)=\u003E[key, values[i]]) );","IsDeferred":false},{"Name":"Object.assign and map #1","Code":"const ob = Object.assign( ...keys.map((k, i) =\u003E ({[k]: values[i]})) );","IsDeferred":false},{"Name":"reduce #1","Code":"const ob = keys.reduce( (o, k, i) =\u003E ({...o, [k]: values[i]}), {} );","IsDeferred":false},{"Name":"for","Code":"const ob = {};\r\nfor (let key=0; key\u003Ckeys.length; key\u002B\u002B) {\r\n\tob[keys[key]] = values[key];\r\n}","IsDeferred":false},{"Name":"forEach #2","Code":"const ob = {};\r\nconst fn = (key, i)=\u003Eob[key]=values[i];\r\nkeys.forEach(fn);","IsDeferred":false},{"Name":"fromEntries and map #2","Code":"const fn = (key, i)=\u003E[key, values[i]];\r\nconst ob = Object.fromEntries(keys.map(fn));","IsDeferred":false},{"Name":"Object.assign and map #2","Code":"const fn = (k, i) =\u003E ({[k]: values[i]});\r\nconst ob = Object.assign( ...keys.map(fn) );","IsDeferred":false},{"Name":"reduce #2","Code":"const fn = (o, k, i) =\u003E ({...o, [k]: values[i]});\r\nconst ob = keys.reduce(fn, {});","IsDeferred":false}]}