voluptasmollitia
Version:
Monorepo for the Firebase JavaScript SDK
30 lines (17 loc) • 813 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@firebase/remote-config](./remote-config.md) > [getBoolean](./remote-config.getboolean.md)
## getBoolean() function
Gets the value for the given key as a boolean.
Convenience method for calling <code>remoteConfig.getValue(key).asBoolean()</code>.
<b>Signature:</b>
```typescript
export declare function getBoolean(remoteConfig: RemoteConfig, key: string): boolean;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| remoteConfig | [RemoteConfig](./remote-config.remoteconfig.md) | The <code>RemoteConfig</code> instance. |
| key | string | The name of the parameter. |
<b>Returns:</b>
boolean
The value for the given key as a boolean.