{"ScriptPreparationCode":"var data = [];\r\nvar res = [];\r\n\r\nfor (let i = 0; i \u003C 150; i\u002B\u002B) {\r\n data.push({\r\n id: i,\r\n bla: \u0027test\u0027,\r\n duration: 0\r\n });\r\n}\r\n\r\nfor (let i = 0; i \u003C 150; i\u002B\u002B) {\r\n res.push({\r\n id: i,\r\n firstname: \u0027lastname\u0027,\r\n name: \u0027coucou\u0027,\r\n times: []\r\n });\r\n}\r\n\r\nfor (var i = data.length - 1; i \u003E 0; i--) {\r\n\r\n // Generate random number \r\n var j = Math.floor(Math.random() * (i \u002B 1));\r\n\r\n var temp = data[i];\r\n data[i] = data[j];\r\n data[j] = temp;\r\n}","TestCases":[{"Name":"forEach imbriqu\u00E9","Code":"res.forEach(oElem =\u003E {\r\n data.forEach(oShuffle =\u003E {\r\n \tif (oElem.id === oShuffle.id) {\r\n \toElem.times.push(oShuffle);\r\n }\r\n });\r\n});","IsDeferred":false},{"Name":"filter","Code":"res.forEach(oElem =\u003E {\r\n const aFilter = data.filter(oShuffle =\u003E oShuffle.id === oElem.id) || [];\r\n aFilter.forEach(oTest =\u003E {\r\n \toElem.times.push(oTest);\r\n });\r\n});","IsDeferred":false},{"Name":"filter direct push","Code":"res.forEach(oElem =\u003E {\r\n const aFilter = data.filter(oShuffle =\u003E oShuffle.id === oElem.id) || [];\r\n oElem.times.push(aFilter);\r\n});","IsDeferred":false}]}