{"ScriptPreparationCode":"function removeFromArraySolution(array, ...args) {\r\n const newArray = [];\r\n\r\n array.forEach((item) =\u003E {\r\n if (!args.includes(item)) {\r\n newArray.push(item);\r\n }\r\n });\r\n\r\n return newArray;\r\n};\r\n\r\nfunction removeFromArrayPersonal(originalArray, ...removeItemsArray) {\r\n for (let removeItem of removeItemsArray) {\r\n if (originalArray.indexOf(removeItem) == -1) {\r\n continue\r\n } else {\r\n originalArray.splice(originalArray.indexOf(removeItem), 1)\r\n }\r\n }\r\n\r\n return originalArray\r\n};","TestCases":[{"Name":"solution","Code":"removeFromArraySolution([1,2,3,4,5,6,7], 2, 5, 7)","IsDeferred":false},{"Name":"personal","Code":"removeFromArrayPersonal([1,2,3,4,5,6,7], 2, 5, 7)","IsDeferred":false}]}