kitten-components
Version:
Front-end components library
18 lines (15 loc) • 432 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
var stringUtils = exports.stringUtils = {
/**
* Converts the first character to uppercase.
*/
upcaseFirst: function upcaseFirst(str) {
if (!str || typeof str !== 'string') return str;
return str.charAt(0).toUpperCase() + str.slice(1);
}
};
// Prefer specific export
var upcaseFirst = exports.upcaseFirst = stringUtils.upcaseFirst;