MCPcopy Create free account
hub / github.com/codemistic/Web-Development / deleteTask

Function deleteTask

To-do list Web App/script.js:81–86  ·  view source on GitHub ↗
(deleteId, filter)

Source from the content-addressed store, hash-verified

79}
80
81function deleteTask(deleteId, filter) {
82 isEditTask = false;
83 todos.splice(deleteId, 1);
84 localStorage.setItem("todo-list", JSON.stringify(todos));
85 showTodo(filter);
86}
87
88clearAll.addEventListener("click", () => {
89 isEditTask = false;

Callers

nothing calls this directly

Calls 1

showTodoFunction · 0.85

Tested by

no test coverage detected