📅  最后修改于: 2022-03-11 15:03:07.137000             🧑  作者: Mango
const fullName = nameString.split(' ');
const initials = fullName.shift().charAt(0) + fullName.pop().charAt(0);
return initials.toUpperCase();