MCPcopy
hub / github.com/KaTeX/KaTeX / isExpandable

Method isExpandable

src/MacroExpander.ts:461–466  ·  view source on GitHub ↗

* Determine whether a command is expandable.

(name: string)

Source from the content-addressed store, hash-verified

459 * Determine whether a command is expandable.
460 */
461 isExpandable(name: string): boolean {
462 const macro = this.macros.get(name);
463 return macro != null ? typeof macro === "string"
464 || typeof macro === "function" || !macro.unexpandable
465 : functions.hasOwnProperty(name) && !functions[name].primitive;
466 }
467}

Callers

nothing calls this directly

Calls 1

getMethod · 0.80

Tested by

no test coverage detected