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

Method isEmpty

src/Bundle.js:241–245  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

239 }
240
241 isEmpty() {
242 if (this.intro.length && this.intro.trim()) return false;
243 if (this.sources.some((source) => !source.content.isEmpty())) return false;
244 return true;
245 }
246
247 length() {
248 return this.sources.reduce(

Callers 1

Calls 1

trimMethod · 0.45

Tested by

no test coverage detected