Falsy Bouncer - code not working

My understanding of truthy is that a boolean will determine it to be true.

So, I wrote the below code but I’m getting an error telling me that false isn’t a function!

Not sure what’s going on

Your code so far


function bouncer(arr) {
  return arr.filter(Boolean == true);
}
bouncer([7, "ate", "", false, 9]);

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.169 Safari/537.36.

Link to the challenge:

Filter is a method that accepts a function as an argument. When calling filter on arr, you are trying to pass a result of your expression which evaluates to false instead of a function, that’s why you are getting this error.
Also, you are trying to use Boolean in a wrong way. A couple of things here - you forgot to call the Boolean function, you forgot to pass an argument for that function call.

You seem to lack an understanding of the functions/methods you are trying to use. Google 'JS array filter ’ and ‘js boolean function’ to learn more.