Tell us what’s happening:
Call the setPlayerCards function with an argument of players.filter().
Inside the filter method, add a callback function with a parameter called player and implicitly return player.nickname is not null.
What am I doing wrong? What does it mean by implicitly?
Your code so far
switch (e.target.value) {
case "nickname": setPlayerCards(players.filter((player)=>{player.nickname !== null ? true : false}))
}
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 Edg/120.0.0.0
Challenge Information:
Learn Modern JavaScript Methods by Building Football Team Cards - Step 41