Here is an Array of DOM elements, and I want to remove all those elements that have a certain class, in this case "checked-item". also I want to mutate the original array so I think filter method is out of the question.
taskArr = [some DOM Elements]
taskArr.forEach(function (task) {
if (task.children[1].className.includes("checked-Item")) {
taskArr.splice(taskArr.indexOf(task), 1);
}
});