(value: string | boolean | number | undefined)
| 583 | |
| 584 | // Need this utility because t3-env is returning string for boolean values. |
| 585 | export const isTruthy = (value: string | boolean | number | undefined) => |
| 586 | typeof value === 'string' ? value.toLowerCase() === 'true' || value === '1' : Boolean(value) |
| 587 | |
| 588 | // Utility to check if a value is explicitly false (defaults to false only if explicitly set) |
| 589 | export const isFalsy = (value: string | boolean | number | undefined) => |
no outgoing calls
no test coverage detected