MCPcopy Create free account
hub / github.com/breck7/scroll / typedMap

Method typedMap

external/.scrollLibs.js:18566–18578  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18564 return should === undefined ? true : should
18565 }
18566 get typedMap() {
18567 const obj = {}
18568 this.forEach(particle => {
18569 if (!particle._shouldSerialize) return true
18570 const tuple = particle.typedTuple
18571 if (!particle.isArrayElement) obj[tuple[0]] = tuple[1]
18572 else {
18573 if (!obj[tuple[0]]) obj[tuple[0]] = []
18574 obj[tuple[0]].push(tuple[1])
18575 }
18576 })
18577 return obj
18578 }
18579 fromTypedMap() {}
18580 compile() {
18581 if (this.isRoot()) return super.compile()

Callers

nothing calls this directly

Calls 1

forEachMethod · 0.80

Tested by

no test coverage detected