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