apiref
query-flags@1.0.0

isQueryFlagEnabled()  Function

Returns true if the flag is enabled in the query string. To enable a flag, add ?flags=flag1,flag2 to the URL.

Signature

export declare function isQueryFlagEnabled(flagName: string): boolean;

Parameters

ParameterTypeDescription
flagNamestring

The name of the flag to check.

(Returns)boolean

true if the flag is enabled, false otherwise.