-
-
Save configbug/dba361d5c4ea10d854999f9cc8f9b0aa to your computer and use it in GitHub Desktop.
Feature Flag
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const newFeature = await this.featureFlags.newFeature(); // retrieve value of Feature Flag | |
if (newFeature) { | |
await this.newFeatureLogic(data); // execute logic for new feature | |
} else { | |
await this.statusQuoLogic(data); // execute logic that is the status quo | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment