function findRightChar(character) {
    for (let i = 0; i < currentCharacters.length; i++) {
        if (character.name == currentCharacters[i].name) {
            return i;
        }
    }
    return false;
}
/**
 * Finds the right character in character array.
 * @returns character if found, and false if not.
 */
Finds the right character in character array.
@returns character if found, and false if not.
Finds the right character in character array . @returns character if found and false if not .
function findRightChar(character) {
    for (let i = 0; i < currentCharacters.length; i++) {
        if (character.name == currentCharacters[i].name) {
            return i;
        }
    }
    return false;
}
function findRightChar ( character ) { for ( let i = 0 ; i < currentCharacters . length ; i ++ ) { if ( character . name == currentCharacters [ i ] . name ) { return i ; } } return false ; }
Finds the right character in character array.
Finds the right character in character array .