diff options
Diffstat (limited to 'src/utils/boolean.ts')
-rw-r--r-- | src/utils/boolean.ts | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/utils/boolean.ts b/src/utils/boolean.ts index 9e842ea..cf10b37 100644 --- a/src/utils/boolean.ts +++ b/src/utils/boolean.ts @@ -1,4 +1,4 @@ -export { isNotThrowing }; +export { isNotThrowing, booleanToHumanReadable }; function isNotThrowing(cb: () => unknown): boolean { try { @@ -8,3 +8,7 @@ function isNotThrowing(cb: () => unknown): boolean { return false; } } + +function booleanToHumanReadable(value: boolean): string { + return value ? 'Yes' : 'No'; +} |