Extract Initials

Extract initials from a name.

Code

General
name.split(' ').map(word => word[0]).join('').toUpperCase();

Parameters

The full name to extract initials from

Browser·fetch() may be limited by CORS

More JavaScript Snippets