1 export function toPascalCase(s: string): string {
2 return s.replace(/(^\w|_\w)/g, (match) =>
3 match.replace(/_/g, "").toUpperCase()
4 )
5 }