{"ScriptPreparationCode":"var arr = Array(10_000).fill({ items: [\u0027item1\u0027, \u0027item2\u0027, \u0027item3\u0027]});","TestCases":[{"Name":"flatMap","Code":"const arr_1 = arr.flatMap(x =\u003E x.items);","IsDeferred":false},{"Name":"concatenation","Code":"const arr_2 = [];\r\narr.forEach(el =\u003E {\r\n arr_2.push(...el.items)\r\n})","IsDeferred":false},{"Name":"concatenation with for of loop","Code":"const arr_3 = [];\r\nfor (let el of arr) {\r\n arr_3.push(...el.items)\r\n}","IsDeferred":false},{"Name":"concatenation with for loop","Code":"const arr_4 = [];\r\nconst n = arr.length;\r\nfor (var i = 0; i \u003C n; i\u002B\u002B) {\r\n arr_4.push(...arr[i].items)\r\n}","IsDeferred":false}]}