@technobuddha/library
Version:
A large library of useful functions
17 lines (16 loc) • 579 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.toSmallCase = void 0;
/**
* Convert the first letter of a string to lower case
*
* @param input The string to make small case
* @default upperCase false
* @returns the string in small case
*/
function toSmallCase(input, _a) {
var _b = _a === void 0 ? {} : _a, _c = _b.upperCase, upperCase = _c === void 0 ? false : _c;
return input[0].toLowerCase() + (upperCase ? input.slice(1).toUpperCase() : input.slice(1));
}
exports.toSmallCase = toSmallCase;
exports.default = toSmallCase;