{"ScriptPreparationCode":"/* these functions assume that only one element matches, so they do not loop! */\r\n\r\nfunction deleteByReverseSpliceLoop(array, letter) {\r\n for (var i = array.length - 1; i \u003E= 0; i--) {\r\n \tif (array[0] === letter) {\r\n array.splice(i, 1);\r\n }\r\n }\r\n}\r\n\r\nfunction deleteByFilter (array, letter) {\r\n array = array.filter( el =\u003E el[0] === letter);\r\n}","TestCases":[{"Name":"Delete by reverse splice loop","Code":"deleteByReverseSpliceLoop( array, \u0022g\u0022 );\r\ndeleteByReverseSpliceLoop( array, \u0022m\u0022 );\r\ndeleteByReverseSpliceLoop( array, \u00224\u0022 );","IsDeferred":false},{"Name":"Delete by Filter","Code":"deleteByFilter( array, \u0022g\u0022 );\r\ndeleteByFilter( array, \u0022m\u0022 );\r\ndeleteByFilter( array, \u00224\u0022 );","IsDeferred":false}]}