{"ScriptPreparationCode":"var data = [{\r\n test: 1,\r\n test: 1,\r\n test: 1,\r\n test: 1,\r\n test: 1,\r\n test: 1\r\n}, {\r\n test: 1,\r\n test: 1,\r\n test: 1,\r\n test: 1,\r\n test: 1,\r\n test: 1\r\n}, {\r\n test: 1,\r\n test: 1,\r\n test: 1,\r\n test: 1,\r\n test: 1,\r\n test: 1\r\n}, {\r\n test: 1,\r\n test: 1,\r\n test: 1,\r\n test: 1,\r\n test: 1,\r\n test: 1\r\n}, {\r\n test: 1,\r\n test: 1,\r\n test: 1,\r\n test: 1,\r\n test: 1,\r\n test: 1\r\n}, {\r\n test: 1,\r\n test: 1,\r\n test: 1,\r\n test: 1,\r\n test: 1,\r\n test: 1\r\n}]","TestCases":[{"Name":"With reduce with an id inside the object","Code":"data.reduce((previousKeys, actualKey, indexKey) =\u003E {\r\n previousKeys[ indexKey ] = { id: indexKey, order: indexKey, ...actualKey };\r\n return previousKeys;\r\n}, {});","IsDeferred":false},{"Name":"with Object.fromEntries ( array.map( ... ) ) with an id inside the object","Code":"Object.fromEntries(data.map((key, value) =\u003E [ value, { id: value, ...key } ]));","IsDeferred":false}]}