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

Method getSlice

external/.scrollLibs.js:15831–15837  ·  view source on GitHub ↗
(startIndexInclusive, stopIndexExclusive)

Source from the content-addressed store, hash-verified

15829 )
15830 }
15831 getSlice(startIndexInclusive, stopIndexExclusive) {
15832 return new Particle(
15833 this.slice(startIndexInclusive, stopIndexExclusive)
15834 .map(subparticle => subparticle.toString())
15835 .join("\n")
15836 )
15837 }
15838 _hasColumns(columns) {
15839 const atoms = this.atoms
15840 return columns.every((searchTerm, index) => searchTerm === atoms[index])

Callers

nothing calls this directly

Calls 4

sliceMethod · 0.95
mapMethod · 0.80
joinMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected