mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-28 17:50:56 +01:00
refactor: migrated crawlab-ui to crawlab/frontend/crawlab-ui
This commit is contained in:
6
frontend/crawlab-ui/src/utils/string.ts
Normal file
6
frontend/crawlab-ui/src/utils/string.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
export const capitalize = (str: string): string => {
|
||||
if (!str) return '';
|
||||
const arr = str.split('');
|
||||
arr[0] = arr[0].toUpperCase();
|
||||
return arr.join('');
|
||||
};
|
||||
Reference in New Issue
Block a user