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.
3 function upperCaseFirst(str) { 4 str += ''; 5 var first = str.charAt(0).toUpperCase(); 6 return first + str.substr(1); 7 }
30 static uppercaseFirstLetter(str) { 31 return str.charAt(0).toUpperCase() + str.slice(1); 32 }
3 function isUpperCase(char) { 4 return char.toUpperCase() === char; 5 }
12 function 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 }
12 function isUppercase(str) { 13 (0, _assertString.default)(str); 14 return str === str.toUpperCase(); 15 }
14 function isUppercase(str) { 15 (0, _assertString2.default)(str); 16 return str === str.toUpperCase(); 17 }
33 function firstToUpperCase (str) { 34 return str.substr(0, 1).toUpperCase() + str.substr(1) 35 }
167 function isUpperCase(name) { 168 return name === name.toUpperCase(); 169 }
13 function upperFirst(str: string): string { 14 return str.charAt(0).toUpperCase() + str.slice(1); 15 }
55 function isUpperCase (text) { 56 if (typeof text === 'string' && text) { 57 return text.toUpperCase() === text 58 } 59 }