1| 2| 3| 4| 5| 6| 7| 8| 9| 10|
const flags: Map<string, boolean> = new Map();
export const enableFlag = (flag: string) => {
flags.set(flag, true);
};
export const isEnabled = (flag: string) => {
return flags.get(flag) === true;
};
1| 2| 3| 4| 5| 6| 7| 8| 9| 10|
const flags: Map<string, boolean> = new Map();
export const enableFlag = (flag: string) => {
flags.set(flag, true);
};
export const isEnabled = (flag: string) => {
return flags.get(flag) === true;
};