10 examples of 'jquery uppercase first letter' in JavaScript

Every line of 'jquery uppercase first letter' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your JavaScript code is secure.

All examples are scanned by Snyk Code

By copying the Snyk Code Snippets you agree to
3function upperCaseFirst(str) {
4 str += '';
5 var first = str.charAt(0).toUpperCase();
6 return first + str.substr(1);
7}
30static uppercaseFirstLetter(str) {
31 return str.charAt(0).toUpperCase() + str.slice(1);
32}
3function isUpperCase(char) {
4 return char.toUpperCase() === char;
5}
12function firstUpperCase(part: string) {
13 let first = part.length > 0 ? part.charAt(0) : '';
14 let remainder = (part.length > 1) ? part.slice(1) : '';
15 return first.toUpperCase() + remainder;
16}
12function isUppercase(str) {
13 (0, _assertString.default)(str);
14 return str === str.toUpperCase();
15}
14function isUppercase(str) {
15 (0, _assertString2.default)(str);
16 return str === str.toUpperCase();
17}
33function firstToUpperCase (str) {
34 return str.substr(0, 1).toUpperCase() + str.substr(1)
35}
167function isUpperCase(name) {
168 return name === name.toUpperCase();
169}
13function upperFirst(str: string): string {
14 return str.charAt(0).toUpperCase() + str.slice(1);
15}
55function isUpperCase (text) {
56 if (typeof text === 'string' && text) {
57 return text.toUpperCase() === text
58 }
59}

Related snippets