mirror of
https://wget.la/https://github.com/Wxw-Gu/WechatExplorer
synced 2026-11-30 16:02:58 +08:00
9 lines
203 B
TypeScript
9 lines
203 B
TypeScript
const truthyValues = new Set(['1', 'true', 'yes', 'on'])
|
|
|
|
export const isTruthyDebugFlag = (value: unknown): boolean =>
|
|
truthyValues.has(
|
|
String(value ?? '')
|
|
.trim()
|
|
.toLowerCase()
|
|
)
|