Learn Modern JavaScript Methods by Building Football Team Cards - Step 41

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

Hi @jermynsoup

Here is an article describing implicit return

The ternary operator was not mentioned in the instructions.

Happy coding

In the said step , you because of the implicit return , u need to not use the curly braces , the whole new line typed by you in this step should only contain 4 paranthesis.
Also I know you did not use the keyword ‘return’ but to future people that may be seeing this , you do not need to use the actual ‘return’ function