1 4
export default function capitalize(str: string) {
2 4
  return str.charAt(0).toUpperCase() + str.slice(1);
3
}

Read our documentation on viewing source code .

Loading