UNPKG

antd

Version:

An enterprise-class UI design language and React components implementation

13 lines (12 loc) 263 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = capitalize; function capitalize(str) { if (typeof str !== 'string') { return str; } const ret = str.charAt(0).toUpperCase() + str.slice(1); return ret; }