mirror of
https://github.com/empayre/fleet.git
synced 2024-11-07 01:15:22 +00:00
00b9c77777
This makes some improvements to the team settings pages. These polish up the experience.
12 lines
243 B
TypeScript
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,
|
|
};
|