Files
yaak-mountain-loop/src-web/lib/indent.ts
2024-05-21 17:56:06 -07:00

7 lines
146 B
TypeScript

export function indent(text: string, space = ' '): string {
return text
.split('\n')
.map((line) => space + line)
.join('\n');
}