{"ScriptPreparationCode":"function deleteBySplice (array, element) {\r\n var newArray = [...array]\r\n var index = newArray.indexOf( element );\r\n if (index !== -1) {\r\n \tnewArray.splice( index, 1 );\r\n }\r\n}\r\n\r\nfunction deleteBySpliceWithLoopCloning (array, element) {\r\n var newArray = []\r\n for (i = 0; i \u003C array.length; i\u002B\u002B) {\r\n newArray[i] = array[i];\r\n }\r\n var index = newArray.indexOf( element );\r\n if (index !== -1) {\r\n \tnewArray.splice( index, 1 );\r\n }\r\n}\r\n\r\nfunction deleteBySpliceWithMapCloning (array, element) {\r\n var newArray = array.map(_ =\u003E _)\r\n var index = newArray.indexOf( element );\r\n if (index !== -1) {\r\n \tnewArray.splice( index, 1 );\r\n }\r\n}\r\n\r\nfunction deleteBySpliceWithConcatCloning (array, element) {\r\n var newArray = array.concat([])\r\n var index = newArray.indexOf( element );\r\n if (index !== -1) {\r\n \tnewArray.splice( index, 1 );\r\n }\r\n}\r\n\r\n\r\nfunction deleteByFilter (array, element) {\r\n array.filter( el =\u003E el !== element );\r\n}","TestCases":[{"Name":"Delete by Splice","Code":"deleteBySplice( array, \u0022uyjxmtqnrzvj7mkyqmtoqolxr\u0022 );\r\ndeleteBySplice( array, \u0022m1c6kzws0iubt8g0zlsug14i\u0022 );\r\ndeleteBySplice( array, \u00224wlivut0n1ht80rs5lyf7ds4i\u0022 );","IsDeferred":false},{"Name":"Delete by Filter","Code":"deleteByFilter( array, \u0022uyjxmtqnrzvj7mkyqmtoqolxr\u0022 );\r\ndeleteByFilter( array, \u0022m1c6kzws0iubt8g0zlsug14i\u0022 );\r\ndeleteByFilter( array, \u00224wlivut0n1ht80rs5lyf7ds4i\u0022 );","IsDeferred":false},{"Name":"Delete by Splice with Loop cloning","Code":"deleteBySpliceWithLoopCloning( array, \u0022uyjxmtqnrzvj7mkyqmtoqolxr\u0022 );\r\ndeleteBySpliceWithLoopCloning( array, \u0022m1c6kzws0iubt8g0zlsug14i\u0022 );\r\ndeleteBySpliceWithLoopCloning( array, \u00224wlivut0n1ht80rs5lyf7ds4i\u0022 );","IsDeferred":false},{"Name":"Delete by Splice with Map cloning","Code":"deleteBySpliceWithMapCloning( array, \u0022uyjxmtqnrzvj7mkyqmtoqolxr\u0022 );\r\ndeleteBySpliceWithMapCloning( array, \u0022m1c6kzws0iubt8g0zlsug14i\u0022 );\r\ndeleteBySpliceWithMapCloning( array, \u00224wlivut0n1ht80rs5lyf7ds4i\u0022 );","IsDeferred":false},{"Name":"Delete by Splice with concat cloning","Code":"\r\ndeleteBySpliceWithConcatCloning( array, \u0022uyjxmtqnrzvj7mkyqmtoqolxr\u0022 );\r\ndeleteBySpliceWithConcatCloning( array, \u0022m1c6kzws0iubt8g0zlsug14i\u0022 );\r\ndeleteBySpliceWithConcatCloning( array, \u00224wlivut0n1ht80rs5lyf7ds4i\u0022 );","IsDeferred":false}]}