@onesy/utils
Version:
13 lines (12 loc) • 458 B
JavaScript
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const is_1 = __importDefault(require("./is"));
const capitalize = (value) => {
if ((0, is_1.default)('string', value))
return `${value.charAt(0).toUpperCase()}${value.slice(1)}`;
return value;
};
exports.default = capitalize;
;