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

Method prepend

benchmark/data.js:997–1000  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

995 return this;
996 }
997 prepend(str) {
998 this.intro = str + this.intro;
999 return this;
1000 }
1001 toString() {
1002 const body = this.sources
1003 .map((source, i) => {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected