mirror of
https://github.com/danog/sass-site.git
synced 2024-12-14 02:17:36 +01:00
17 lines
292 B
TypeScript
17 lines
292 B
TypeScript
function getImplStatus(status) {
|
|
switch (status) {
|
|
case null:
|
|
return status;
|
|
case true:
|
|
return '✓';
|
|
case false:
|
|
return '✗';
|
|
case 'partial':
|
|
return 'partial';
|
|
default:
|
|
return `since ${status}`;
|
|
}
|
|
}
|
|
|
|
module.exports = { getImplStatus };
|