fleet/frontend/utilities/strings/stringUtils.ts
Gabe Hernandez 00b9c77777
Improve team setting functionality (#704)
This makes some improvements to the team settings pages. These polish up the experience.
2021-04-30 12:13:04 -07:00

12 lines
243 B
TypeScript

/**
* Capitalizes the words of the string passed in.
* @param str un-capitalized string
*/
const capitalize = (str: string): string => {
return str.replace(/\b\w/g, (letter) => letter.toUpperCase());
};
export default {
capitalize,
};