SHARE
TWEET

Untitled

a guest Dec 6th, 2018 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function CapitalFirstName(name) {
  2.   name = name.split(' ')[0];
  3.   return name.charAt(0).toUpperCase() + name.slice(1);
  4. }
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