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

Method append

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

Source from the content-addressed store, hash-verified

299 this.sourcemapLocations.add(char);
300 }
301 append(content) {
302 if (typeof content !== 'string') throw new TypeError('outro content must be a string');
303 this.outro += content;
304 return this;
305 }
306 appendLeft(index, content) {
307 if (typeof content !== 'string') throw new TypeError('inserted content must be a string');
308 this._split(index);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected