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

Method edit

benchmark/data-min.js:56–64  ·  view source on GitHub ↗
(t, e, n)

Source from the content-addressed store, hash-verified

54 for (; e; ) (t(e), (e = e.previous));
55 }
56 edit(t, e, n) {
57 return (
58 (this.content = t),
59 n || ((this.intro = ''), (this.outro = '')),
60 (this.storeName = e),
61 (this.edited = !0),
62 this
63 );
64 }
65 prependLeft(t) {
66 this.outro = t + this.outro;
67 }

Callers 5

splitMethod · 0.95
trimEndMethod · 0.95
trimStartMethod · 0.95
overwriteMethod · 0.45
removeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected