MCPcopy
hub / github.com/KaTeX/KaTeX / has

Method has

src/Namespace.ts:72–75  ·  view source on GitHub ↗

* Detect whether `name` has a definition. Equivalent to * `get(name) != null`.

(name: string)

Source from the content-addressed store, hash-verified

70 * `get(name) != null`.
71 */
72 has(name: string): boolean {
73 return this.current.hasOwnProperty(name) ||
74 this.builtins.hasOwnProperty(name);
75 }
76
77 /**
78 * Get the current value of a name, or `undefined` if there is no value.

Callers 15

renderElemFunction · 0.80
macros.tsFile · 0.80
buildSvgSpan_Function · 0.80
buildExpressionFunction · 0.80
expandMacroMethod · 0.80
isDefinedMethod · 0.80
isCharacterBoxFunction · 0.80
parseExpressionMethod · 0.80
getVariantFunction · 0.80
buildMathMLFunction · 0.80
makeStackedDelimFunction · 0.80
makeSizedDelimFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected