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

Method get

static/katex/katex.mjs:12975–12981  ·  view source on GitHub ↗

* Get the current value of a name, or `undefined` if there is no value. * * Note: Do not use `if (namespace.get(...))` to detect whether a macro * is defined, as the definition may be the empty string which evaluates * to `false` in JavaScript. Use `if (namespace.get(...) != null)` or

(name)

Source from the content-addressed store, hash-verified

12973
12974
12975 get(name) {
12976 if (this.current.hasOwnProperty(name)) {
12977 return this.current[name];
12978 } else {
12979 return this.builtins[name];
12980 }
12981 }
12982 /**
12983 * Set the current value of a name, and optionally set it globally too.
12984 * Local set() sets the current value and (when appropriate) adds an undo

Callers 15

katex.jsFile · 0.45
parseTree_parseTreeFunction · 0.45
katex.mjsFile · 0.45
expandMacroMethod · 0.45
_getExpansionMethod · 0.45
parseTreeFunction · 0.45
katex.min.jsFile · 0.45
pnFunction · 0.45
setDocTypeFunction · 0.45
attachOnBeforePrintEventFunction · 0.45
markdown.jsFile · 0.45
load_docFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected