Creates a new FeatureFlags instance
Checks if a feature is enabled
The feature name to check
boolean - True if the feature is enabled
Checks if a feature is disabled
The feature name to check
boolean - True if the feature is disabled
Checks if a feature exists in the flags
The feature name to check
boolean - True if the feature exists
Conditionally executes callbacks based on feature flag state
The feature name to check
Callback to execute when feature is enabled
OptionaldisabledCallback: () => DisabledResultOptional callback to execute when feature is disabled
The result of the executed callback
A light weight implementation of feature flags to conditionally enable experimental and legacy features.