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

Evaluates the flag against the current flag map.

Parameters

flag: string

Flag name.

optional
context: FlagContext

Targeting context.

Return Type

boolean

Whether the flag is enabled.

Usage

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