Merge branch 'feat/fe/statuspage-3' into feat/fe/create-status

This commit is contained in:
Alex Holliday committed 2025-02-01 08:38:39 -08:00
commit 701e81cb78
28 files changed
+1285 -113

No files matched your search

+19
View File
@@ -15,3 +15,22 @@ export const capitalizeFirstLetter = (str) => {
}
return str.charAt(0).toUpperCase() + str.slice(1);
};
/**
* Helper function to get first letter as a lower case string
* @param {string} str String whose first letter is to be lower cased
* @returns A string with first letter lower cased
*/
export const toLowerCaseFirstLetter = (str) => {
if (str === null || str === undefined) {
return "";
}
if (typeof str !== "string") {
throw new TypeError("Input must be a string");
}
if (str.length === 0) {
return "";
}
return str.charAt(0).toLowerCase() + str.slice(1);
};