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

Method getIndentString

benchmark/data-min.js:763–772  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

761 return new b(this.generateDecodedMap(t));
762 }
763 getIndentString() {
764 const t = {};
765 return (
766 this.sources.forEach((e) => {
767 const n = e.content.indentStr;
768 n !== null && (t[n] || (t[n] = 0), (t[n] += 1));
769 }),
770 Object.keys(t).sort((e, n) => t[e] - t[n])[0] || ' '
771 );
772 }
773 indent(t) {
774 if ((arguments.length || (t = this.getIndentString()), t === '')) return this;
775 let e =

Callers 1

indentMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected