{"ScriptPreparationCode":null,"TestCases":[{"Name":"Slice","Code":"function removeItem(array, id){\r\n for(var i=0; i\u003Carray.length; i\u002B\u002B){\r\n if(array[i] === id){\r\n array.splice(i,1);\r\n break;\r\n }\r\n }\r\n\r\n return array;\r\n}\r\n\r\nconst numbers = Array.from(Array(100000).keys())\r\n\r\nremoveItem(numbers, 50000)","IsDeferred":false},{"Name":"Filter","Code":"const numbers = Array.from(Array(100000).keys())\r\n\r\nlet f = n =\u003E n !== 50000;\r\n\r\nconst filteredNumbers = numbers.filter(f)","IsDeferred":false}]}