MCPcopy 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

checkFunction · 0.95
misc.test.tsFile · 0.45
isEmpty.test.tsFile · 0.45

Calls 2

toStringMethod · 0.95
trimMethod · 0.45

Tested by 1

checkFunction · 0.76