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

Method prepend

benchmark/data.js:554–558  ·  view source on GitHub ↗
(content)

Source from the content-addressed store, hash-verified

552 return this;
553 }
554 prepend(content) {
555 if (typeof content !== 'string') throw new TypeError('outro content must be a string');
556 this.intro = content + this.intro;
557 return this;
558 }
559 prependLeft(index, content) {
560 if (typeof content !== 'string') throw new TypeError('inserted content must be a string');
561 this._split(index);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected