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

Evaluates a flag against the cached snapshot for this context.

Parameters

flag: string

Flag name

optional
context: FlagContext

Targeting context

Return Type

boolean

The snapshot value, or the configured fallbackValue when this context has not been evaluated yet (a background refill is scheduled)

Usage

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