Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Rich-Harris/magic-string
/ hasChanged
Method
hasChanged
tests/fuzz/edit-model.ts:130–132 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
128
}
129
130
hasChanged(): boolean {
131
return
this.toString() !== this.original
132
}
133
134
isEmpty(): boolean {
135
return
this.toString().trim() ===
''
Callers
3
check
Function · 0.95
misc.test.ts
File · 0.45
replace-all.test.ts
File · 0.45
Calls
1
toString
Method · 0.95
Tested by
1
check
Function · 0.76