MCPcopy Create free account
hub / github.com/Vishal-raj-1/Awesome-JavaScript-Projects / removeTransaction

Function removeTransaction

assets/js/ExpenseTracker.js:110–114  ·  view source on GitHub ↗
(id)

Source from the content-addressed store, hash-verified

108
109 //Remove Transaction by ID
110 function removeTransaction(id){
111 transactions = transactions.filter(transaction => transaction.id !== id);
112 updateLocalStorage();
113 Init();
114 }
115 //last
116 //update Local Storage Transaction
117 function updateLocalStorage(){

Callers

nothing calls this directly

Calls 2

updateLocalStorageFunction · 0.85
InitFunction · 0.85

Tested by

no test coverage detected