{"ScriptPreparationCode":null,"TestCases":[{"Name":"No check to see if there is an array","Code":"const [Builder, add] = (Math.random() \u003E 0.5) ? [Array, \u0027push\u0027] : [Set, \u0027add\u0027];\r\nconst collection = new Builder();\r\nfor (let i = 0; i \u003C 1000; i\u002B\u002B) { collection[add](i); }\r\nconst result = Array.from(collection);","IsDeferred":false},{"Name":"Check to see if there is an array","Code":"const [Builder, add] = (Math.random() \u003E 0.5) ? [Array, \u0027push\u0027] : [Set, \u0027add\u0027];\r\nconst collection = new Builder();\r\nfor (let i = 0; i \u003C 1000; i\u002B\u002B) { collection[add](i); }\r\nconst result = Array.isArray(collection) ? collection : Array.from(collection);","IsDeferred":false}]}