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

Function checkAtomFamily

static/katex/katex.mjs:6021–6023  ·  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

6019 */
6020
6021function checkAtomFamily(node, family) {
6022 return node && node.type === "atom" && node.family === family ? node : null;
6023}
6024/**
6025 * Returns the node more strictly typed iff it is of the given type. Otherwise,
6026 * returns null.

Callers 1

assertAtomFamilyFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected