%PDF- %PDF-
Direktori : /home/emergentqj/actioncivile/pre-auth/.4cc3a2e1590a4463a5f392ddcc26929e/static/node_modules/@material-ui/core/esm/utils/ |
Current File : /home/emergentqj/actioncivile/pre-auth/.4cc3a2e1590a4463a5f392ddcc26929e/static/node_modules/@material-ui/core/esm/utils/capitalize.js |
import { formatMuiErrorMessage as _formatMuiErrorMessage } from "@material-ui/utils"; // It should to be noted that this function isn't equivalent to `text-transform: capitalize`. // // A strict capitalization should uppercase the first letter of each word a the sentence. // We only handle the first word. export default function capitalize(string) { if (typeof string !== 'string') { throw new Error(process.env.NODE_ENV !== "production" ? "Material-UI: capitalize(string) expects a string argument." : _formatMuiErrorMessage(7)); } return string.charAt(0).toUpperCase() + string.slice(1); }