MCPcopy Create free account
hub / github.com/dipscope/TypeManager.TS / indentify

Function indentify

src/functions/json-stringify.ts:21–29  ·  view source on GitHub ↗
(level: number)

Source from the content-addressed store, hash-verified

19 const indents = [''];
20
21 const indentify = (level: number): string =>
22 {
23 while (indents.length <= level)
24 {
25 indents.push(indents[indents.length - 1] + spacing);
26 }
27
28 return indents[level];
29 };
30
31 const stringify = (parent: any, key: string, node: any, level: number): string =>
32 {

Callers 1

stringifyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected