forked from projectmoon/tenebrous-dicebot
10 lines
213 B
JavaScript
10 lines
213 B
JavaScript
|
const capitalizeFirstLetter = (string) => {
|
||
|
if (typeof string !== 'string') {
|
||
|
return '';
|
||
|
}
|
||
|
|
||
|
return string.charAt(0).toUpperCase() + string.slice(1);
|
||
|
};
|
||
|
|
||
|
module.exports = capitalizeFirstLetter;
|