Menu

Close
  • Home
Subscribe
Menu

Reduce a name to it's initials using Javascript

13 May 2017

const initials = (name) => name.split(' '). reduce((a, b) => a.concat(b.charAt(0)), ''). toUpperCase();

Dan Alloway's Picture

Dan Alloway

Read more posts by this author.

Richmond, VA

Share this post

Twitter Facebook Google+

Javascript nilly nilly

Abstraction "can" be great, so use Ramda, Lodash or whatever flavor you prefer if that is what you need.…

Error: 'libsass' bindings not found

Let's get straight to the point. When you install node-sass it compiles libsass binaries matching the OS you are…

Micah Six © 2023
Proudly published with Ghost