tenebrous-dicebot/api/node_modules/webpack-cli/lib/utils/capitalize-first-letter.js

10 lines
213 B
JavaScript

const capitalizeFirstLetter = (string) => {
if (typeof string !== 'string') {
return '';
}
return string.charAt(0).toUpperCase() + string.slice(1);
};
module.exports = capitalizeFirstLetter;