{"ScriptPreparationCode":"var list = [];\r\nfor (var i = 0; i \u003C 1000; i\u002B\u002B) {\r\n list.push({index: i, content: i.toString()});\r\n}\r\n","TestCases":[{"Name":"splice","Code":"function removeByIndex(arr, index) {\r\n\tconst nextArr = [...arr];\r\n \tnextArr.splice(index, 1);\r\n \treturn nextArr;\r\n}\r\n\r\nremoveByIndex(list, 800);","IsDeferred":false},{"Name":"slice","Code":"function removeByIndex(arr, index) {\r\n\treturn [...arr.slice(0, index), ...arr.slice(index \u002B 1)]\r\n}\r\n\r\nremoveByIndex(list, 800);","IsDeferred":false}]}