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

Method delete

external/.scrollLibs.js:17256–17263  ·  view source on GitHub ↗
(path = "")

Source from the content-addressed store, hash-verified

17254 return this._deleteByIndexes(indexesToDelete)
17255 }
17256 delete(path = "") {
17257 const edgeSymbol = this.edgeSymbol
17258 if (!path.includes(edgeSymbol)) return this._deleteAllChildParticlesWithCue(path)
17259 const parts = path.split(edgeSymbol)
17260 const nextCue = parts.pop()
17261 const targetParticle = this.getParticle(parts.join(edgeSymbol))
17262 return targetParticle ? targetParticle._deleteAllChildParticlesWithCue(nextCue) : 0
17263 }
17264 deleteColumn(cue = "") {
17265 this.forEach(particle => particle.delete(cue))
17266 return this

Callers 3

getOneHotMethod · 0.45
deleteColumnMethod · 0.45
toggleMethod · 0.45

Calls 4

getParticleMethod · 0.95
splitMethod · 0.80
joinMethod · 0.45

Tested by

no test coverage detected