MCPcopy Create free account
hub / github.com/deepnote/vscode-deepnote / remove

Method remove

src/platform/common/utils/map.ts:319–328  ·  view source on GitHub ↗
(key: K)

Source from the content-addressed store, hash-verified

317 }
318
319 remove(key: K): V | undefined {
320 const item = this._map.get(key);
321 if (!item) {
322 return undefined;
323 }
324 this._map.delete(key);
325 this.removeItem(item);
326 this._size--;
327 return item.value;
328 }
329
330 shift(): V | undefined {
331 if (!this._head && !this._tail) {

Callers 1

deleteMethod · 0.95

Calls 3

removeItemMethod · 0.95
getMethod · 0.65
deleteMethod · 0.65

Tested by

no test coverage detected