Exported the string.ts helper function
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
function convertCamelCaseToReadable(camelCaseString: string): string {
|
export function convertCamelCaseToReadable(camelCaseString: string): string {
|
||||||
// Split the string using regex to match the capital letters
|
// Split the string using regex to match the capital letters
|
||||||
const wordsArray = camelCaseString.split(/(?=[A-Z])/);
|
const wordsArray = camelCaseString.split(/(?=[A-Z])/);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user