MCPcopy Index your code
hub / github.com/exceljs/exceljs / reset

Method reset

lib/utils/string-builder.js:16–24  ·  view source on GitHub ↗
(position)

Source from the content-addressed store, hash-verified

14 }
15
16 reset(position) {
17 if (position) {
18 while (this._buf.length > position) {
19 this._buf.pop();
20 }
21 } else {
22 this._buf = [];
23 }
24 }
25
26 addText(text) {
27 this._buf.push(text);

Callers 1

constructorMethod · 0.95

Calls 1

popMethod · 0.80

Tested by

no test coverage detected