I really just wanted to post my first post, and I had just made this snippet, so I decided to post it here! What the hay!
const formatMiddleInitial = middleName => (middleName ? middleName.charAt(0).toUpperCase() : null);
console.log('stuff', formatMiddleInitial('clark hark'));
Top comments (0)