1export function toClout(n: number | null | undefined): number | undefined { 2 if (n == null) { 3 return undefined 4 } else { 5 return Math.max(0, Math.round(Math.log(n))) 6 } 7}