MCPcopy Create free account
hub / github.com/TruthHun/BookStack / spaceStr

Function spaceStr

static/editor.md/lib/codemirror/lib/codemirror.js:8059–8063  ·  view source on GitHub ↗
(n)

Source from the content-addressed store, hash-verified

8057
8058 var spaceStrs = [""];
8059 function spaceStr(n) {
8060 while (spaceStrs.length <= n)
8061 spaceStrs.push(lst(spaceStrs) + " ");
8062 return spaceStrs[n];
8063 }
8064
8065 function lst(arr) { return arr[arr.length-1]; }
8066

Callers 2

indentLineFunction · 0.70
buildTokenFunction · 0.70

Calls 1

lstFunction · 0.70

Tested by

no test coverage detected