sass-site/source/helpers/sass_helpers.ts
2023-02-25 18:07:51 -07:00

15 lines
287 B
TypeScript

export function getImplStatus(status: string | boolean | null) {
switch (status) {
case null:
return status;
case true:
return '✓';
case false:
return '✗';
case 'partial':
return 'partial';
default:
return `since ${status}`;
}
}