{"ScriptPreparationCode":"var a;\r\nvar prependArray = function(value, oldArray) {\r\n var i, len = oldArray.length \u002B 1,\r\n newArray = new Array(len);\r\n newArray[0] = value;\r\n for (i = 0; i \u003C len; \u002B\u002Bi) {\r\n newArray.push(oldArray[i]);\r\n }\r\n return newArray;\r\n}","TestCases":[{"Name":"Spread Operator","Code":"a = new Array(10000).fill().map((_, i) =\u003E i)\r\na = [0, ...a];","IsDeferred":false},{"Name":"Unshift","Code":"a = new Array(10000).fill().map((_, i) =\u003E i)\r\na.unshift(0);","IsDeferred":false},{"Name":"Unshift without mutation","Code":"a = new Array(10000).fill().map((_, i) =\u003E i)\r\na.slice(0).unshift(0);","IsDeferred":false},{"Name":"Prepend function","Code":"a = new Array(10000).fill().map((_, i) =\u003E i)\r\nprependArray(0, a);","IsDeferred":false}]}