{"ScriptPreparationCode":"function deleteBySplice (array, index) {\r\n \r\n if (index !== -1) {\r\n \tarray.splice( index, 1 );\r\n }\r\n}\r\n\r\nfunction deleteByDelete (array, index) {\r\n \r\n if (index !== -1) {\r\n \tdelete array[index];\r\n }\r\n}","TestCases":[{"Name":"deleteBySplice","Code":"deleteBySplice( array, 1000002 );\r\ndeleteBySplice( array, 1 );\r\ndeleteBySplice( array, 2 );","IsDeferred":false},{"Name":"deleteByDelete","Code":"deleteByDelete( array, 1000002 );\r\ndeleteByDelete( array, 1 );\r\ndeleteByDelete( array, 2 );","IsDeferred":false}]}