1 | "use strict";
|
2 |
|
3 | Object.defineProperty(exports, "__esModule", {
|
4 | value: true
|
5 | });
|
6 | exports.default = capitalize;
|
7 |
|
8 | var _utils = require("@material-ui/utils");
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 | function capitalize(string) {
|
15 | if (typeof string !== 'string') {
|
16 | throw new Error(process.env.NODE_ENV !== "production" ? "Material-UI: capitalize(string) expects a string argument." : (0, _utils.formatMuiErrorMessage)(7));
|
17 | }
|
18 |
|
19 | return string.charAt(0).toUpperCase() + string.slice(1);
|
20 | } |
\ | No newline at end of file |