This commit is contained in:
ryanwong
2022-02-06 22:15:10 -05:00
parent 46625dd6cd
commit a07577bffa
145 changed files with 12008 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
function capitalizeFirstLetter(target) {
if (typeof target !== 'string') {
throw new Error('Parameter should be a string.');
}
return target?.substring(0, 1).toUpperCase() + target?.substring(1)?.toLocaleLowerCase();
}
module.exports = {
capitalizeFirstLetter,
};