MCPcopy Index your code
hub / github.com/htmlhint/HTMLHint / repeatStr

Function repeatStr

src/core/core.ts:264–266  ·  view source on GitHub ↗
(n: number, str?: string)

Source from the content-addressed store, hash-verified

262
263// repeat string
264function repeatStr(n: number, str?: string) {
265 return new Array(n + 1).join(str || ' ')
266}
267
268export const HTMLHint = new HTMLHintCore()
269

Callers 1

formatMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected