Files
apps.apple.com/shared/featurekit/src/is-enabled.ts
2025-11-04 05:03:50 +08:00

8 lines
182 B
TypeScript

export const isEnabled = (key: string): boolean => {
if (typeof window !== 'undefined') {
return window._featureKit?.isEnabled(key) ?? false;
}
return false;
};