(id, value)
| 163 | localStorage.setItem("list", JSON.stringify(items)); |
| 164 | } |
| 165 | function editLocalStorage(id, value) { |
| 166 | let items = getLocalStorage(); |
| 167 | |
| 168 | items = items.map(function (item) { |
| 169 | if (item.id === id) { |
| 170 | item.value = value; |
| 171 | } |
| 172 | return item; |
| 173 | }); |
| 174 | localStorage.setItem("list", JSON.stringify(items)); |
| 175 | } |
| 176 | |
| 177 | // SETUP LOCALSTORAGE.REMOVEITEM('LIST'); |
| 178 |
no test coverage detected