{"ScriptPreparationCode":"var length = 1000000;\r\nvar fillWith = 5;","TestCases":[{"Name":"Map","Code":"const array = [...Array(length)].map(() =\u003E fillWith);","IsDeferred":false},{"Name":"Array.apply \u002B Fill","Code":"const array = Array.apply([], { length }).fill(fillWith);","IsDeferred":false},{"Name":"While Loop","Code":"let index = length - 1;\r\nconst array = [];\r\n\r\nwhile (index-- \u003E 0) array[index] = fillWith;","IsDeferred":false},{"Name":"For Loop","Code":"const array = [];\r\n\r\nfor (let index = length - 1; index \u003E= 0; index--) array[index] = fillWith;","IsDeferred":false},{"Name":"New Array \u002B Fill","Code":"const array = new Array(length).fill(fillWith);","IsDeferred":false},{"Name":"Array Literal With Length \u002B Fill","Code":"const array = [];\r\narray.length = length;\r\n\r\narray.fill(fillWith);","IsDeferred":false}]}