MCPcopy Create free account
hub / github.com/Rich-Harris/magic-string / prepend

Method prepend

tests/fuzz/edit-model.ts:46–48  ·  view source on GitHub ↗
(content: string)

Source from the content-addressed store, hash-verified

44 }
45
46 prepend(content: string): void {
47 this.left[0] = content + this.left[0]
48 }
49
50 appendLeft(index: number, content: string): void {
51 this.split(index)

Callers 15

prepend.test.tsFile · 0.45
misc.test.tsFile · 0.45
indent.test.tsFile · 0.45
buildFunction · 0.45
trim.test.tsFile · 0.45
clone.test.tsFile · 0.45
isEmpty.test.tsFile · 0.45
prepend.test.tsFile · 0.45
length.test.tsFile · 0.45
indent.test.tsFile · 0.45

Calls

no outgoing calls

Tested by 1

buildFunction · 0.36