function havePokemon(pokemon) {
    const name = pokemons.some((e) => e.name === pokemon);
    const id = pokemons.some((e) => e.id == pokemon);
    return name || id;
  }
//Veriy if pokemon is alredy in list
Veriy if pokemon is alredy in list
Veriy if pokemon is alredy in list
function havePokemon(pokemon) {
    const name = pokemons.some((e) => e.name === pokemon);
    const id = pokemons.some((e) => e.id == pokemon);
    return name || id;
  }
function havePokemon ( pokemon ) { const name = pokemons . some ( ( e ) => e . name === pokemon ) ; const id = pokemons . some ( ( e ) => e . id == pokemon ) ; return name || id ; }
Veriy if pokemon is alredy in list
Veriy if pokemon is alredy in list