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

Method prependLeft

tests/fuzz/edit-model.ts:55–58  ·  view source on GitHub ↗
(index: number, content: string)

Source from the content-addressed store, hash-verified

53 }
54
55 prependLeft(index: number, content: string): void {
56 this.split(index)
57 this.left[index] = content + this.left[index]
58 }
59
60 appendRight(index: number, content: string): void {
61 this.split(index)

Callers 5

append.test.tsFile · 0.45
reset.test.tsFile · 0.45
prepend.test.tsFile · 0.45

Calls 1

splitMethod · 0.95

Tested by

no test coverage detected