SHARE
TWEET

Untitled

a guest Aug 20th, 2019 45 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. let camelRE = /([A-Z])/g
  2.  
  3. let phrase = "thisIsACamelCaseString"
  4.  
  5. console.log(phrase.replace(camelRE, " $1")
  6.  
  7. /*
  8. this Is A Camel Case String
  9. */
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top