Ad
  • Default User Avatar

    I think the function searchNames should have a return value like this.

    function searchNames(logins){
    var a = logins.filter(nameUnderScore);
    return a;
    }

    function nameUnderScore(val) {

    var last_index = val[0].length -1;

    if (val[0].charAt(lastindex) == '_') {

    return val; } }