{"ScriptPreparationCode":"/* these functions assume that only one element matches, so they do not loop! */\r\n\r\nfunction removeBySplice (array, element) {\r\n var index = array.indexOf( element );\r\n if (index !== -1) {\r\n \tarray.splice( index, 1 );\r\n }\r\n}\r\n\r\nfunction removeByCopyWithin (array, element) {\r\n var index = array.indexOf( element );\r\n if (index !== -1) {\r\n \tarray.copyWithin( index, index \u002B 1 );\r\n --array.length;\r\n }\r\n}\r\n\r\nfunction removeByFilter (array, element) {\r\n array = array.filter( el =\u003E el !== element );\r\n}\r\n\r\nfunction removeByDelete (array, element) {\r\n delete array[element];\r\n}","TestCases":[{"Name":"Remove by splice","Code":"removeBySplice( array, \u0022uyjxmtqnrzvj7mkyqmtoqolxr\u0022 );\r\nremoveBySplice( array, \u0022m1c6kzws0iubt8g0zlsug14i\u0022 );\r\nremoveBySplice( array, \u00224wlivut0n1ht80rs5lyf7ds4i\u0022 );","IsDeferred":false},{"Name":"Remove by copy within","Code":"removeByCopyWithin( array, \u0022uyjxmtqnrzvj7mkyqmtoqolxr\u0022 );\r\nremoveByCopyWithin( array, \u0022m1c6kzws0iubt8g0zlsug14i\u0022 );\r\nremoveByCopyWithin( array, \u00224wlivut0n1ht80rs5lyf7ds4i\u0022 );","IsDeferred":false},{"Name":"Remove by filter","Code":"removeByFilter( array, \u0022uyjxmtqnrzvj7mkyqmtoqolxr\u0022 );\r\nremoveByFilter( array, \u0022m1c6kzws0iubt8g0zlsug14i\u0022 );\r\nremoveByFilter( array, \u00224wlivut0n1ht80rs5lyf7ds4i\u0022 );","IsDeferred":false},{"Name":"Remove by delete","Code":"removeByDelete( array, \u0022uyjxmtqnrzvj7mkyqmtoqolxr\u0022 );\r\nremoveByDelete( array, \u0022m1c6kzws0iubt8g0zlsug14i\u0022 );\r\nremoveByDelete( array, \u00224wlivut0n1ht80rs5lyf7ds4i\u0022 );","IsDeferred":false}]}