dapoadedire / digital-world-clock

Found no return statements in callbacks of array methods JS-0042
Anti-pattern
Major
1 occurrence in this check
Array.prototype.filter() expects a value to be returned at the end of arrow function
39  e.preventDefault();
40  search.addEventListener("change", (e) => {
41    userInput = String(e.target.value).toLowerCase().trim();
42    let FilteredTimeZoneArray = allTimezonesArray.filter((eachTimeZone) => {43      let eachTimeZoneString = String(eachTimeZone.textContent).toLowerCase();
44      if (eachTimeZoneString.includes(userInput)) {
45        eachTimeZone.parentElement.style.display = "block";