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