Every line of 'typescript capitalize' 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.
22 function _capitalize(string) { 23 return string && (string.charAt(0).toUpperCase() + string.slice(1)); 24 }
7 export function capitalize (string) { 8 return string && (string.charAt(0).toUpperCase() + string.slice(1)) 9 }
19 module.exports.capitalize = function capitalize(str) { 20 return str.charAt(0).toUpperCase() + str.slice(1, str.length); 21 };
7 function capitalize(str) { 8 return str && str[0].toUpperCase() + str.slice(1); 9 }
90 function capitalize(s) { 91 return s && s.charAt(0).toUpperCase() + s.slice(1) 92 }
9 function capitalize (word) { 10 var lower = word.toLowerCase(); 11 return lower.slice(0, 1).toUpperCase() + lower.slice(1); 12 }
59 export function capitalize(word) { 60 const str = `${word}`; 61 return str.charAt(0).toUpperCase() + str.slice(1); 62 }
749 function capitalize(string) { 750 return string.charAt(0).toUpperCase() + string.slice(1); 751 }
62 capitalize(s) { 63 return s && s[0].toUpperCase() + s.slice(1); 64 }
21 export function capitalize(str) { 22 return ucFirst(str); 23 }