MCPcopy Create free account
hub / github.com/Rich-Harris/magic-string / isEmpty

Method isEmpty

benchmark/data.js:710–721  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

708 return str + this.outro;
709 }
710 isEmpty() {
711 let chunk = this.firstChunk;
712 do {
713 if (
714 (chunk.intro.length && chunk.intro.trim()) ||
715 (chunk.content.length && chunk.content.trim()) ||
716 (chunk.outro.length && chunk.outro.trim())
717 )
718 return false;
719 } while ((chunk = chunk.next));
720 return true;
721 }
722 length() {
723 let chunk = this.firstChunk;
724 let length = 0;

Callers

nothing calls this directly

Calls 1

trimMethod · 0.45

Tested by

no test coverage detected