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.