{"ScriptPreparationCode":"/* these functions assume that only one element matches, so they do not loop! */\r\n\r\nfunction deleteBySplice (array, element) {\r\n array.splice( array.indexOf( element ), 1 );\r\n}\r\n\r\nfunction deleteBySpliceIdx (array, element) {\r\n array.splice( element, 1 );\r\n}\r\n\r\nfunction deleteByFilter (array, element) {\r\n array = array.filter( el =\u003E el !== element );\r\n}","TestCases":[{"Name":"Delete by Splice","Code":"deleteBySplice( array, \u00222sjycnx525scxzfxfmwl7q4cxr\u0022 );\r\ndeleteBySplice( array, \u0022m1c6kzws0iubt8g0zlsug14i\u0022 );\r\ndeleteBySplice( array, \u00221l7rj49636ddmk3cbszitchaor\u0022 );","IsDeferred":false},{"Name":"Delete by Splice Index","Code":"deleteBySpliceIdx( array, 10 );\r\ndeleteBySpliceIdx( array, 0 );\r\ndeleteBySpliceIdx( array, 5 );","IsDeferred":false},{"Name":"Delete by Filter","Code":"deleteByFilter( array, \u00222sjycnx525scxzfxfmwl7q4cxr\u0022 );\r\ndeleteByFilter( array, \u0022m1c6kzws0iubt8g0zlsug14i\u0022 );\r\ndeleteByFilter( array, \u00221l7rj49636ddmk3cbszitchaor\u0022 );","IsDeferred":false}]}