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

Method forEach

src/lualib/Map.ts:77–81  ·  view source on GitHub ↗
(callback: (value: V, key: K, map: Map<K, V>) => any)

Source from the content-addressed store, hash-verified

75 }
76
77 public forEach(callback: (value: V, key: K, map: Map<K, V>) => any): void {
78 for (const key of this.keys()) {
79 callback(this.items.get(key), key, this);
80 }
81 }
82
83 public get(key: K): V | undefined {
84 return this.items.get(key);

Callers 12

compareNumericBenchmarksFunction · 0.45
arrayForeachFunction · 0.45
watch.spec.tsFile · 0.45
executeCommandLineFunction · 0.45
performCompilationFunction · 0.45
forEachMeasureFunction · 0.45
loadFunction · 0.45
getTypeAnnotationsFunction · 0.45
validateAssignmentFunction · 0.45
call-extension.tsFile · 0.45

Calls 2

keysMethod · 0.95
getMethod · 0.45

Tested by

no test coverage detected