Sasha Hershfield
Sasha H.
parseUserName = userName => {
const splitted = userName.split(" ");
const firstName = splitted[0];
const lastName = splitted[splitted.length - 1][0];
return `${firstName} ${lastName}.`;
};
const parseUserName = userName => userName.replace(/ (.*)$/, match => match.substr(0, 2) + '.')
parseUserName = userName => {
const [first, last] = userName.split(' ')
return `${first} ${last[0]}.`
}