Skip to main content

isVariable

Verifies if the supplied input is a possible variable.

info

This function is used in the markdown functions to verify if a variable referenced in a markdown text has the correct format.

Signature​

isVariable(input: string | undefined): boolean

Parameters​

NameTypeOptionalDescription
inputstring | undefinedNoInput to validate.

Return value​

Returns true if the input has the correct format.