{"ScriptPreparationCode":"function deleteBySplice (array, index) {\r\n const newArray = [...array];\r\n newArray.splice(index, 1);\r\n return newArray;\r\n}\r\n\r\nfunction deleteByFilter (array, index) {\r\n return array.filter((el, i) =\u003E i !== index);\r\n}","TestCases":[{"Name":"Delete by Splice","Code":"deleteBySplice(array, 1);\r\ndeleteBySplice(array, 100);\r\ndeleteBySplice(array, 200);","IsDeferred":false},{"Name":"Delete by Filter","Code":"deleteByFilter(array, 1);\r\ndeleteByFilter(array, 100);\r\ndeleteByFilter(array, 200);","IsDeferred":false}]}