2022-09-03 02:19:54 +02:00

4 lines
120 B
TypeScript

export function parseBool(s: string): boolean {
return ["1", "true", "on", "y", "yes"].includes(s.toLowerCase());
}