we are a community of more than 2 million smartest coders
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now
  
pinned-register now
showing results for - "camelcase to hyphenated javascript"
Brooke
08 Aug 2017
1let dashed = camel.replace(/[A-Z]/g, m => "-" + m.toLowerCase());