{"ScriptPreparationCode":"function randomArray(e) { \r\n e = e || 32;\r\n var t = \u0022ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz2345678\u0022,\r\n a = t.length,\r\n n = [];\r\n for (i = 0; i \u003C e; i\u002B\u002B) n.push(t.charAt(Math.floor(Math.random() * a)));\r\n return n\r\n}\r\nvar arr1 = randomArray(100)\r\nvar arr2 = randomArray(10000)\r\nvar arr3 = randomArray(1000000)","TestCases":[{"Name":"splice-1","Code":"var result1 = arr1.splice(Math.floor(arr1.length / 2), 1, \u0022i\u0022)","IsDeferred":false},{"Name":"splice-2","Code":"var result1 = arr2.splice(Math.floor(arr2.length / 2), 1, \u0022i\u0022)","IsDeferred":false},{"Name":"splice-3","Code":"var result1 = arr3.splice(Math.floor(arr3.length / 2), 1, \u0022i\u0022)","IsDeferred":false},{"Name":"toSpliced-1","Code":"var result1 = arr1.toSpliced(Math.floor(arr1.length / 2), 1, \u0022i\u0022)","IsDeferred":false},{"Name":"toSpliced-2","Code":"var result1 = arr2.toSpliced(Math.floor(arr2.length / 2), 1, \u0022i\u0022)","IsDeferred":false},{"Name":"toSpliced-3","Code":"var result1 = arr3.toSpliced(Math.floor(arr3.length / 2), 1, \u0022i\u0022)","IsDeferred":false},{"Name":"splice-3 add items","Code":"var result1 = arr3.splice(Math.floor(arr3.length / 2), 1, \u0022i\u0022, \u00222\u0022)","IsDeferred":false},{"Name":"splice-3 remove","Code":"var result1 = arr3.splice(Math.floor(arr3.length / 2), 1)","IsDeferred":false},{"Name":"toSpliced-3 add","Code":"var result1 = arr3.toSpliced(Math.floor(arr3.length / 2), 1, \u0022i\u0022, \u0022d\u0022)","IsDeferred":false},{"Name":"toSpliced-3 remove","Code":"var result1 = arr3.toSpliced(Math.floor(arr3.length / 2), 1)","IsDeferred":false}]}