Function
src/index.ts:520nerdamer.getConstant
nerdamer.getConstant(name: string): stringReturns the current text registered for a parser constant. Built-in constants are generated at the active precision before being returned. As in the legacy API, an unknown constant is reported as the string
`'undefined'`.
Parameters
| Name | Type | Description |
|---|---|---|
name | string | Constant name to read. |
Returns
string — The registered constant text.
