MCPcopy
hub / github.com/markdoc/markdoc / trimStart

Function trimStart

src/formatter.ts:124–133  ·  view source on GitHub ↗
(g: Generator<string>)

Source from the content-addressed store, hash-verified

122}
123
124function* trimStart(g: Generator<string>) {
125 let n;
126 do {
127 const { value, done } = g.next();
128 if (done) return;
129 n = value.trimStart();
130 } while (!n.length);
131 yield n;
132 yield* g;
133}
134
135function* escapeMarkdownCharacters(s: string, characters: RegExp) {
136 yield s

Callers 1

formatNodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…