dapoadedire / digital-world-clock

Either all code paths should have explicit returns, or none of them JS-0045
Anti-pattern
Minor
1 occurrence in this check
Expected to return a value 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";