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

Method remove

To-Do List/Task Schedule List/main.js:58–63  ·  view source on GitHub ↗
(itemBox, name)

Source from the content-addressed store, hash-verified

56 }
57
58 remove(itemBox, name){
59 itemBox.parentNode.removeChild(itemBox);
60 let index = todos.indexOf(name);
61 todos.splice(index, 1);
62 window.localStorage.setItem("todos", JSON.stringify(todos));
63 }
64}
65
66add.addEventListener('click', check);

Callers 15

createItemMethod · 0.95
clearErrorFunction · 0.80
DeFunction · 0.80
pressedfuncFunction · 0.80
script.jsFile · 0.80
buttonAnimationFunction · 0.80
type.jsFile · 0.80
buttonAnimationFunction · 0.80
index.jsFile · 0.80
main.jsFile · 0.80
increaseCountFunction · 0.80
resetFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected