MCPcopy Index your code
hub / github.com/TypeScriptToLua/TypeScriptToLua / delete

Method delete

src/lualib/WeakMap.ts:31–35  ·  view source on GitHub ↗
(key: K)

Source from the content-addressed store, hash-verified

29 }
30
31 public delete(key: K): boolean {
32 const contains = this.has(key);
33 this.items.set(key, undefined!);
34 return contains;
35 }
36
37 public get(key: K): V | undefined {
38 return this.items.get(key);

Callers

nothing calls this directly

Calls 2

hasMethod · 0.95
setMethod · 0.45

Tested by

no test coverage detected