MCPcopy 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

checkFunction · 0.95
misc.test.tsFile · 0.45

Calls 1

toStringMethod · 0.95

Tested by 1

checkFunction · 0.76