MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / indent

Function indent

scripts/experimental/swiftui-preview.mjs:1367–1373  ·  view source on GitHub ↗
(text, spaces)

Source from the content-addressed store, hash-verified

1365}
1366
1367function indent(text, spaces) {
1368 const prefix = " ".repeat(spaces);
1369 return text
1370 .split("\n")
1371 .map((line) => `${prefix}${line}`)
1372 .join("\n");
1373}
1374
1375function arrayArg(value) {
1376 if (value == null) {

Callers 1

payloadWrapperSourceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected