{"ScriptPreparationCode":"var n = 100000; // 100k\r\nfunction filler(v, i) {\r\n return i ** 2;\r\n}","TestCases":[{"Name":"Spread operator","Code":"[...Array(n).keys()].map(filler);","IsDeferred":false},{"Name":"Array apply","Code":" Array.apply(null, { length: n }).map(filler);","IsDeferred":false},{"Name":"Array from","Code":"Array.from({ length: n }, filler);","IsDeferred":false},{"Name":"Array fill","Code":"Array(n).fill(undefined).map(filler)","IsDeferred":false},{"Name":"For loop push","Code":"const arr = [];\r\nfor (let i = 0; i \u003C n; i\u002B\u002B) {\r\n arr.push(filler(null, i));\r\n}","IsDeferred":false}]}