Answers for "camel case to hyphen js"

2

camelcase to hyphenated javascript

let dashed = camel.replace(/[A-Z]/g, m => "-" + m.toLowerCase());
Posted by: Guest on July-07-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language