{"ScriptPreparationCode":"var arr = [];\r\nfor (id=1;id\u003C1000;id\u002B\u002B) arr.push({id,name:Math.random().toString(36).substring(7)})\r\nvar pk = \u0027id,name\u0027;\r\nvar pkarr = pk.split(\u0027,\u0027)\r\nvar acc={};","TestCases":[{"Name":"reduce array key","Code":"arr.reduce((acc,row) =\u003E {\r\n acc[pkarr.map((col)=\u003Erow[col]).join(\u0027,\u0027)]=row;\r\n return acc;\r\n},{})","IsDeferred":false},{"Name":"foreach array key","Code":"arr.forEach(row =\u003E acc[pkarr.map((col)=\u003Erow[col]).join(\u0027,\u0027)]=row);","IsDeferred":false},{"Name":"foreach simple key","Code":"arr.forEach(row =\u003E acc[row.id\u002B\u0027,\u0027\u002Brow.name]=row);","IsDeferred":false},{"Name":"foreach simple template","Code":"arr.forEach(row =\u003E acc[\u0060${row.id},${row.name}\u0060]=row);","IsDeferred":false},{"Name":"reduce simple key","Code":"arr.reduce((acc,row) =\u003E {\r\n acc[row.id\u002B\u0027,\u0027\u002Brow.name]=row;\r\n return acc;\r\n},{})","IsDeferred":false},{"Name":"reduce simple template","Code":"arr.reduce((acc,row) =\u003E {\r\n acc[\u0060${row.id},${row.name}\u0060]=row;\r\n return acc;\r\n},{})","IsDeferred":false}]}