Last active
September 5, 2018 15:14
-
-
Save noahrc/6c08bc442cd9b31d93cfcc5763077d70 to your computer and use it in GitHub Desktop.
Example of a feature toggle
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
{ | |
"featureToggles": { | |
"releaseTheKraken": true, | |
} | |
} |
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
import { featureToggles } from "./config.json" | |
if (featureToggles.releaseTheKraken) { | |
// Release the Kraken! | |
} | |
else { | |
// The Kraken isn't ready yet... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment