<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@firebase/remote-config](./remote-config.md) &gt; [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.

