mirror of
https://github.com/Xevion/rdap.git
synced 2025-12-15 06:12:53 -06:00
Prototype commit
This commit is contained in:
5
src/helpers.ts
Normal file
5
src/helpers.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
export function truthy(value: string | null | undefined) {
|
||||
if (value == undefined) return false;
|
||||
return value.toLowerCase() == 'true' || value == '1';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user