isSet
isSet<
K>(key):boolean
Checks whether a specific configuration option is set.
Type parameters
Section titled “Type parameters”• K extends string | number
Parameters
Section titled “Parameters”• key: K
The key of the configuration option to check.
Returns
Section titled “Returns”boolean
true if the configuration option is set, otherwise false.
Example
Section titled “Example”// Verify if the 'api' configuration is setif (isSet('api')) { console.log('API configuration is set.');} else { console.log('API configuration is not set.');}