• Formats 0-10 score into human-readable string ("Not Rated" or "{score}/10").

    Parameters

    • score: number

      The score value (0-10).

    Returns string

    Formatted score string.

    export function formatScore(score: number): string {
    if (score === 0) {
    return "Not Rated";
    }
    return `${score}/10`;
    }