Function

nerdamer.getConstant

src/index.ts:520
nerdamer.getConstant(name: string): string

Returns 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

NameTypeDescription
namestringConstant name to read.

Returns

string — The registered constant text.