Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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.ts
File · 0.45
misc.test.ts
File · 0.45
indent.test.ts
File · 0.45
build
Function · 0.45
generate-map.test.ts
File · 0.45
trim.test.ts
File · 0.45
clone.test.ts
File · 0.45
isEmpty.test.ts
File · 0.45
prepend.test.ts
File · 0.45
toMagicString.test.ts
File · 0.45
length.test.ts
File · 0.45
indent.test.ts
File · 0.45
Calls
no outgoing calls
Tested by
1
build
Function · 0.36