init
This commit is contained in:
3
worklenz-frontend/src/utils/toCamelCase.ts
Normal file
3
worklenz-frontend/src/utils/toCamelCase.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
export const toCamelCase = (str: string) => {
|
||||
return str.toLowerCase().replace(/[^a-zA-Z0-9]+(.)/g, (_, char) => char.toUpperCase());
|
||||
};
|
||||
Reference in New Issue
Block a user