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

Method toStringWithLineNumbers

external/.scrollLibs.js:16331–16336  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16329 return names
16330 }
16331 toStringWithLineNumbers() {
16332 return this.toString()
16333 .split("\n")
16334 .map((line, index) => `${index + 1} ${line}`)
16335 .join("\n")
16336 }
16337 get asCsv() {
16338 return this.toDelimited(",")
16339 }

Callers

nothing calls this directly

Calls 4

toStringMethod · 0.95
mapMethod · 0.80
splitMethod · 0.80
joinMethod · 0.45

Tested by

no test coverage detected