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

Method addUniqueRowsToNestedDelimited

external/.scrollLibs.js:17472–17479  ·  view source on GitHub ↗
(header, rowsAsStrings)

Source from the content-addressed store, hash-verified

17470 return this.setSubparticles(this.toDelimited(delimiter))
17471 }
17472 addUniqueRowsToNestedDelimited(header, rowsAsStrings) {
17473 if (!this.length) this.appendLine(header)
17474 // todo: this looks brittle
17475 rowsAsStrings.forEach(row => {
17476 if (!this.toString().includes(row)) this.appendLine(row)
17477 })
17478 return this
17479 }
17480 shiftLeft() {
17481 const grandParent = this._getGrandParent()
17482 if (!grandParent) return this

Callers 1

addObjectsAsDelimitedMethod · 0.95

Calls 3

appendLineMethod · 0.95
toStringMethod · 0.95
forEachMethod · 0.80

Tested by

no test coverage detected