What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-09-10 07:21:03
uppercase first letter js
//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 -
Java 2021-09-10 07:06:01
java add forward / at the end of not present
const regex = new RegExp("^(/[a-z0–9/_\-]*)"); console.log("/newsgjgjgj".replace(regex, "$1/")); console.log("/news?param1=value1".replace(regex, "$1/")); console.log("/news#anchor?param1=value1... Add solution -
Javascript 2021-09-09 17:42:01
Number To words jq
//HTML Start <input type="number" id="number" placeholder="Number..."> <h5 class="result"></h5> //HTML End $("input#number").keyup(function(){ var number = $(this).val(); var word... Add solution -
C# 2021-09-09 15:42:03
copy-the-entire-contents-of-a-directory-in-c-sharp
//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-09 11:38:03
javascript capitalize string
//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-09 10:36:02
export mongo to csv node
const json2csv = require('json2csv').parse; //For unique file name const dateTime = new Date().toISOString().slice(-24).replace(/\D/g, '').slice(0, 14); const filePath = path.join(__dirname, "../../../", "public", "exports&quo... Add solution
Best helpers
Ranking is empty