mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-28 17:50:56 +01:00
7 lines
164 B
Go
7 lines
164 B
Go
export const capitalize = (str: string): string => {
|
|
if (!str) return '';
|
|
const arr = str.split('');
|
|
arr[0] = arr[0].toUpperCase();
|
|
return arr.join('');
|
|
};
|