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

Function checkAtomFamily

static/katex/katex.js:6055–6057  ·  view source on GitHub ↗

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

(node, family)

Source from the content-addressed store, hash-verified

6053 */
6054
6055function checkAtomFamily(node, family) {
6056 return node && node.type === "atom" && node.family === family ? node : null;
6057}
6058/**
6059 * Returns the node more strictly typed iff it is of the given type. Otherwise,
6060 * returns null.

Callers 1

assertAtomFamilyFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected