shift73k/assets_old/node_modules/webpack-cli/lib/utils/capitalize-first-letter.js

10 lines
213 B
JavaScript
Raw Normal View History

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