get Method

Attempts to retrieve a variable, the search is case-insensitive.

get(varName: string, defaultVal?: boolean | string | number): any

throws if the variable does not exist and a default value is not provided.

Parameter Type Description
varName string The name of the config variable to find
defaultVal boolean | string | number The default value to return if the variable does not exist. If undefined, an exception is thrown.

Defined in

Last Updated: 08 January, 2020