Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

todashcase javascript

let str = "Sample text";
let str2 = str.replace(/[" "]/g,"-");
console.log(str2); // Sample-text
Source by gist.github.com #
 
PREVIOUS NEXT
Tagged: #todashcase #javascript
ADD COMMENT
Topic
Name
9+9 =