{"ScriptPreparationCode":"var a = []\r\n\r\nfor (var i = 0; i \u003C 1000 * 1000; i\u002B\u002B) {\r\n a.push(i);\r\n}","TestCases":[{"Name":"slice and slice","Code":"var i = a.slice().reverse().findIndex(x =\u003E x !== \u0027\u0027) \r\na = a.slice(0, a.length - i)","IsDeferred":false},{"Name":"slice and splice","Code":"var i = a.slice().reverse().findIndex(x =\u003E x !== \u0027\u0027)\r\na.splice(a.length - i)","IsDeferred":false},{"Name":"only slice","Code":" var i = a.reverse().findIndex(x =\u003E x !== \u0027\u0027)\r\n a = a.slice(i).reverse()\r\n","IsDeferred":false},{"Name":"only splice","Code":" var i = a.reverse().findIndex(x =\u003E x !== \u0027\u0027)\r\n a.splice(0, i)\r\n a.reverse()","IsDeferred":false}]}