Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Rich-Harris/magic-string
/ isEmpty
Method
isEmpty
tests/fuzz/edit-model.ts:134–136 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
132
}
133
134
isEmpty(): boolean {
135
return
this.toString().trim() ===
''
136
}
137
138
slice(start: number, end: number): string {
139
if
(this.isInsideEditedChunk(start) || this.isInsideEditedChunk(end))
Callers
3
check
Function · 0.95
misc.test.ts
File · 0.45
isEmpty.test.ts
File · 0.45
Calls
2
toString
Method · 0.95
trim
Method · 0.45
Tested by
1
check
Function · 0.76