mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-17 12:56:05 +00:00
fix is_toggled test
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
export type Env = {};
|
||||
|
||||
export const is_toggled = (given: unknown, fallback?: boolean): boolean => {
|
||||
return typeof given === "string" ? [1, "1", "true"].includes(given) : Boolean(fallback);
|
||||
return typeof given === "string" ? [1, "1", "true"].includes(given) : Boolean(given || fallback);
|
||||
};
|
||||
|
||||
export function isDebug(): boolean {
|
||||
|
||||
Reference in New Issue
Block a user