What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-09-20 22:17:02
capitalize first letter of each word javascript
//capitalize only the first letter of the string. function capitalizeFirstLetter(string) { return string.charAt(0).toUpperCase() + string.slice(1); } //capitalize all words of a string. function capitalizeWords(string) { return string.repl... Add solution -
TypeScript 2021-09-20 18:54:02
javascript capitalize all words
//capitalize only the first letter of the string. function capitalizeFirstLetter(string) { return string.charAt(0).toUpperCase() + string.slice(1); } //capitalize all words of a string. function capitalizeWords(string) { return string.repl... Add solution -
C# 2021-09-20 00:38:04
C# copy directory
//Now Create all of the directories foreach (string dirPath in Directory.GetDirectories(SourcePath, "*", SearchOption.AllDirectories)) Directory.CreateDirectory(dirPath.Replace(SourcePath, DestinationPath)); //Copy all the files & ... Add solution -
Javascript 2021-09-19 12:31:03
how to capitalize string in javascript
//capitalize only the first letter of the string. function capitalizeFirstLetter(string) { return string.charAt(0).toUpperCase() + string.slice(1); } //capitalize all words of a string. function capitalizeWords(string) { return string.repl... Add solution -
Javascript 2021-09-19 05:18:03
replace line break with html line break js
function nl2br(str){ return str.replace(/(?:\r\n|\r|\n)/g, '<br>'); } var stringWithNewLines= `Well this is a a very broken sentance`; var stringWithBrs=nl2br(stringWithNewLines); // stringWithBrs= "Well this is a<br>a very <br... Add solution -
Javascript 2021-09-19 02:08:03
to pascal case javascript
/** * toPascalCase * @param {String} input * @returns A string that has been converted into Pascal Case for keeping with the React Naming convention required for naming Components. * @see https://stackoverflow.com/a/53952925/13301381 * @author ka... Add solution
Best helpers
Ranking is empty