daily pastebin goal
25%
SHARE
TWEET

Untitled

a guest May 16th, 2018 98 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var str = myList[i].replace(/.jpg|.jpeg|.png/, function(x) {
  2.    return '';
  3. });
  4.  
  5. var str = str.replace(/_/g, " ");
  6.  
  7. var prettyName = str.toLowerCase().replace(/\b[a-z]/g, function(letter) {
  8.    return letter.toUpperCase();
  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
 
Top