(obj: unknown, key: string)
| 86 | }; |
| 87 | |
| 88 | export const readBoolean = (obj: unknown, key: string): boolean => { |
| 89 | if (!isRecord(obj)) { |
| 90 | return false; |
| 91 | } |
| 92 | |
| 93 | return obj[key] === true; |
| 94 | }; |
| 95 | |
| 96 | /** |
| 97 | * Best-effort split of a single display name into first / last. Used by |
no test coverage detected