data .filter( (country) => !search || country.name.toLowerCase().includes(search.toLowerCase()) ) .map(country => ...)