Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Rich-Harris/magic-string
/ hasChanged
Method
hasChanged
benchmark/data.js:784–786 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
782
return
this;
783
}
784
hasChanged() {
785
return
this.original !== this.toString();
786
}
787
replace(searchValue, replacement) {
788
function
getReplacement(match, str) {
789
if
(typeof replacement ===
'string'
) {
Callers
nothing calls this directly
Calls
1
toString
Method · 0.95
Tested by
no test coverage detected