speedclimbing/website

View on GitHub
src/utils/formatName.ts

Summary

Maintainability
A
0 mins
Test Coverage
import type { AthleteResult } from 'types/Athlete';

export const formatName = (athlete: AthleteResult) => {
    return `${athlete.first_name.charAt(0).toUpperCase()}${athlete.first_name.slice(
        1
    )} ${athlete.last_name.toUpperCase()}`;
};