Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

camelcase to hyphenated javascript

let dashed = camel.replace(/[A-Z]/g, m => "-" + m.toLowerCase());
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #camelcase #hyphenated #javascript
ADD COMMENT
Topic
Name
4+2 =