MCPcopy Create free account
hub / github.com/isomorphic-git/isomorphic-git / deepget

Function deepget

src/utils/DeepMap.js:1–7  ·  view source on GitHub ↗
(keys, map)

Source from the content-addressed store, hash-verified

1const deepget = (keys, map) => {
2 for (const key of keys) {
3 if (!map.has(key)) map.set(key, new Map())
4 map = map.get(key)
5 }
6 return map
7}
8
9export class DeepMap {
10 constructor() {

Callers 3

setMethod · 0.85
getMethod · 0.85
hasMethod · 0.85

Calls 3

hasMethod · 0.45
setMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…