method FeatureFlagService.prototype.isEnabled
FeatureFlagService.prototype.isEnabled(
flag: string,
context?: FlagContext
): boolean

Evaluates whether a flag is enabled.

Parameters

flag: string

Flag name.

optional
context: FlagContext

Targeting context.

Return Type

boolean

true when the flag is on; unknown flags → false.

Usage

import { FeatureFlagService } from "feature-flags-plugin/src/index.ts";