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