{"ScriptPreparationCode":"var ARRAY_SIZE = 250;\r\n\r\nvar createSampleObject = function() {\r\n return {\r\n \u0022id\u0022: 538,\r\n \u0022uid\u0022: \u00229b14d2b5-a0c5-409d-a8bf-4b569a5ce10b\u0022,\r\n \u0022vin\u0022: \u002254A1LF7KKBT858198\u0022,\r\n \u0022make_and_model\u0022: \u0022Honda Odyssey\u0022,\r\n \u0022color\u0022: \u0022Violet\u0022,\r\n \u0022transmission\u0022: \u0022Automatic\u0022,\r\n \u0022drive_type\u0022: \u0022RWD\u0022,\r\n \u0022fuel_type\u0022: \u0022Ethanol\u0022,\r\n \u0022car_type\u0022: \u0022Regular Cab Pickup\u0022,\r\n \u0022car_options\u0022: [\r\n \u0022Rear Window Defroster\u0022,\r\n \u0022MP3 (Single Disc)\u0022,\r\n \u0022Airbag: Driver\u0022,\r\n \u0022CD (Multi Disc)\u0022,\r\n \u0022Alloy Wheels\u0022,\r\n \u0022Cruise Control\u0022,\r\n \u0022Rear Window Wiper\u0022,\r\n \u0022MP3 (Multi Disc)\u0022,\r\n \u0022Power Locks\u0022\r\n ],\r\n \u0022specs\u0022: [\r\n \u0022Bright pedals\u0022,\r\n \u0022Immobilizer system\u0022,\r\n \u0022Pwr accessory delay\u0022,\r\n \u0022Enhanced accident response system unlocks the doors, shuts off the fuel pump and turns on interior lights after airbag deploys\u0022,\r\n \u0022Carpeted cargo area\u0022,\r\n \u0022Floor carpeting\u0022,\r\n \u0022Black windshield molding\u0022,\r\n \u0022Optitron electroluminescent instrumentation\u0022\r\n ],\r\n \u0022doors\u0022: 2,\r\n \u0022mileage\u0022: 16246,\r\n \u0022kilometrage\u0022: 86360,\r\n \u0022license_plate\u0022: \u0022DQX-9667\u0022\r\n }\r\n};","TestCases":[{"Name":"Array fill (has reference issues)","Code":"new Array(ARRAY_SIZE).fill(createSampleObject());","IsDeferred":false},{"Name":"Array from","Code":"Array.from({ length: ARRAY_SIZE }, createSampleObject);","IsDeferred":false},{"Name":"Array map","Code":"new Array(ARRAY_SIZE).fill().map(() =\u003E createSampleObject() );","IsDeferred":false},{"Name":"For and push","Code":"const arr = [];\r\n\r\nfor (let i = 0; i \u003C ARRAY_SIZE; i\u002B\u002B) {\r\n arr.push(createSampleObject());\r\n}","IsDeferred":false},{"Name":"Array spread operator","Code":"[...new Array(ARRAY_SIZE)].map(() =\u003E createSampleObject());","IsDeferred":false}]}