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