Home > @firebase/remote-config > getBoolean
getBoolean() function
Gets the value for the given key as a boolean.
Convenience method for calling remoteConfig.getValue(key).asBoolean()
.
Signature:
export declare function getBoolean(remoteConfig: RemoteConfig, key: string): boolean;
Parameters
Parameter | Type | Description |
---|---|---|
remoteConfig | RemoteConfig | The RemoteConfig instance. |
key | string | The name of the parameter. |
Returns:
boolean
The value for the given key as a boolean.