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

Method appendAtomIfMissing

external/.scrollLibs.js:17448–17451  ·  view source on GitHub ↗
(atom)

Source from the content-addressed store, hash-verified

17446 return new Set(this.getAtomsFrom(1))
17447 }
17448 appendAtomIfMissing(atom) {
17449 if (this.getAtomsAsSet().has(atom)) return this
17450 return this.appendAtom(atom)
17451 }
17452 // todo: check to ensure identical objects
17453 addObjectsAsDelimited(arrayOfObjects, delimiter = Utils._chooseDelimiter(new Particle(arrayOfObjects).toString())) {
17454 const header = Object.keys(arrayOfObjects[0])

Callers

nothing calls this directly

Calls 3

getAtomsAsSetMethod · 0.95
appendAtomMethod · 0.95
hasMethod · 0.45

Tested by

no test coverage detected