js get initials from name
const fullName = nameString.split(' ');
const initials = fullName.shift().charAt(0) + fullName.pop().charAt(0);
return initials.toUpperCase();
Also in JavaScript:
- remove duplicates from array
- how to code a check age function in javascript
- shift javascript
- javascript equality
- how to place a line break in react native
- deep clone array in javascript
- js check if function is a constructor
- javascript find object in array and replace it
- timepicker in jquery
- latest rn fatch blob package download
- jquery checkbox unchecked
- mobile number validation in javascript
- what is eval in js
- discord.js
- reactjs app change port
- turn text into links javascript
- syntax to call item from array
- javascript conditional evaluation
- express req get json
- javascript string into substrings of length
- how to remove sub array null index in javascript
- react start new app
- install expo cli mac os
- javascript set timeout