IOTConnect-Web/node_modules/ext/string_/capitalize.js
2024-05-09 09:49:52 +08:00

10 lines
216 B
JavaScript

"use strict";
var ensureString = require("type/string/ensure");
module.exports = function () {
var input = ensureString(this);
if (!input) return input;
return input.charAt(0).toUpperCase() + input.slice(1);
};