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

Method length

benchmark/data.js:1016–1021  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1014 return true;
1015 }
1016 length() {
1017 return this.sources.reduce(
1018 (length, source) => length + source.content.length(),
1019 this.intro.length,
1020 );
1021 }
1022 trimLines() {
1023 return this.trim('[\\r\\n]');
1024 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected