// src/lib/stringUtils.ts
// removes the slash at the beginning of a string
export const removeFrontSlash = (myString: string) => {
return myString.replace(/^\//, '');
}
Search
May 20, 20241 min read
// src/lib/stringUtils.ts
// removes the slash at the beginning of a string
export const removeFrontSlash = (myString: string) => {
return myString.replace(/^\//, '');
}