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

Function checkSymbolNodeType

static/katex/katex.mjs:6043–6050  ·  view source on GitHub ↗

* Returns the node more strictly typed iff it is of the given type. Otherwise, * returns null.

(node)

Source from the content-addressed store, hash-verified

6041 */
6042
6043function checkSymbolNodeType(node) {
6044 if (node && (node.type === "atom" || NON_ATOMS.hasOwnProperty(node.type))) {
6045 // $FlowFixMe
6046 return node;
6047 }
6048
6049 return null;
6050}
6051
6052/**
6053 * Describes spaces between different classes of atoms.

Callers 3

assertSymbolNodeTypeFunction · 0.70
checkDelimiterFunction · 0.70
handlerFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected