Convert Method to function and if statement
const filterMovies = !filter ? movies : movies.filter((movie) =&gt; movie.info.title.includes(filter...
Tags: javascript, function