Last active
June 25, 2024 19:54
-
-
Save TheTempas/46eec0cf8dec7bebaea2391d0349adc3 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