You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
consul/ui/packages/consul-ui/app/utils/ucfirst.js

4 lines
95 B

export default function(str) {
return `${str.substr(0, 1).toUpperCase()}${str.substr(1)}`;
}