MCPcopy Create free account
hub / github.com/SplootCode/splootcode / compareMap

Function compareMap

packages/runtime-python/src/runtime/common.ts:175–185  ·  view source on GitHub ↗
(a: Map<string, string>, b: Map<string, string>)

Source from the content-addressed store, hash-verified

173 | LoadDependenciesMessage
174
175export function compareMap(a: Map<string, string>, b: Map<string, string>) {
176 if (a.size !== b.size) {
177 return false
178 }
179 for (const [key, value] of a) {
180 if (value !== b.get(key)) {
181 return false
182 }
183 }
184 return true
185}
186
187export function sameDepencencies(a: Dependency[], b: Dependency[]) {
188 if (a.length !== b.length) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected