{"size": 585, "ext": "js", "max_stars_repo_path": "JavaScript Fundamentals/Strings and Regular Expressions - Lab/07.Usernames.js", "max_stars_repo_name": "RAstardzhiev/SoftUni-C-", "max_stars_repo_stars_event_min_datetime": "2017-05-24T15:41:09.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-11T09:27:09.000Z", "max_issues_repo_path": "JavaScript Fundamentals/Strings and Regular Expressions - Lab/07.Usernames.js", "max_issues_repo_name": "svetoslav0/Software-University-SoftUni", "max_issues_repo_issues_event_min_datetime": "2018-08-30T13:58:20.000Z", "max_issues_repo_issues_event_max_datetime": "2018-08-30T13:58:20.000Z", "max_forks_repo_path": "JavaScript Fundamentals/Strings and Regular Expressions - Lab/07.Usernames.js", "max_forks_repo_name": "svetoslav0/Software-University-SoftUni", "max_forks_repo_forks_event_min_datetime": "2017-06-18T10:17:01.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-11T09:27:18.000Z"}
{"max_stars_count": 91, "max_issues_count": 1, "max_forks_count": 143, "avg_line_length": 27.8571428571, "max_line_length": 91, "alphanum_fraction": 0.4974358974}
let printUsernames = arr => console.log(arr.map(e => {
    let atSeparated = e.split('@');
    return atSeparated[0] + '.' + atSeparated[1]
        .split('.')
        .map(a => a[0])
        .join('')
    })
    .join(', '));

// function printUsernames(params) {
//     let usernames = [];
//     params.forEach(e => {
//         let arr = e.split('@');
//         usernames.push(arr[0] + '.' + arr[1].split('.').map(a => a.charAt(0)).join(''));
//     });

//     console.log(usernames.join(', '));
// }


printUsernames(['peshoo@gmail.com', 'todor_43@mail.dir.bg', 'foo@bar.com']);